import { motion } from "motion/react"; import { Sparkles, type LucideIcon } from "lucide-react"; type Metric = { icon: string | LucideIcon; title: string; value: string; }; type MetricsIconCardsProps = { tag: string; title: string; description: string; primaryButton?: { text: string; href: string }; secondaryButton?: { text: string; href: string }; metrics: Metric[]; }; const MetricsIconCards = ({ tag, title, description, primaryButton, secondaryButton, metrics, }: MetricsIconCardsProps) => { return (
{tag} {title} {description} {(primaryButton || secondaryButton) && (
{primaryButton && ( {primaryButton.text} )} {secondaryButton && ( {secondaryButton.text} )}
)}
{metrics.map((metric) => (
{metric.title}
{metric.value}
))}
); }; export default MetricsIconCards;