export type StatsProps = { heading?: string; stats?: Array<{ value: string; label: string; description?: string }>; }; export default function Stats({ heading = '', stats = [] }: StatsProps) { return (
{heading &&

{heading}

}
{stats.map((stat, index) => (

{stat.value}

{stat.label}

{stat.description &&

{stat.description}

}
))}
); }