import type { LucideIcon } from "lucide-react"; import Button from "@/components/ui/Button"; import TextAnimation from "@/components/ui/TextAnimation"; import GridOrCarousel from "@/components/ui/GridOrCarousel"; import ScrollReveal from "@/components/ui/ScrollReveal"; import { resolveIcon } from "@/utils/resolve-icon"; type Metric = { icon: string | LucideIcon; title: string; value: string; }; const MetricsIconCards = ({ tag, title, description, primaryButton, secondaryButton, metrics, }: { tag: string; title: string; description: string; primaryButton?: { text: string; href: string }; secondaryButton?: { text: string; href: string }; metrics: Metric[]; }) => (

{tag}

{(primaryButton || secondaryButton) && (
{primaryButton &&
)}
{metrics.map((metric) => { const IconComponent = resolveIcon(metric.icon); return (
{metric.title}
{metric.value}
); })}
); export default MetricsIconCards;