import { motion } from "motion/react"; type Metric = { value: string; description: string; }; type MetricsSimpleCardsProps = { tag: string; title: string; description: string; primaryButton?: { text: string; href: string }; secondaryButton?: { text: string; href: string }; metrics: Metric[]; }; const MetricsSimpleCards = ({ tag, title, description, primaryButton, secondaryButton, metrics, }: MetricsSimpleCardsProps) => { return (
{tag} {title} {description} {(primaryButton || secondaryButton) && (
{primaryButton && ( {primaryButton.text} )} {secondaryButton && ( {secondaryButton.text} )}
)}
{metrics.map((metric) => (
{metric.value}

{metric.description}

))}
); }; export default MetricsSimpleCards;