import Link from "next/link"; interface StatsCardProps { icon: string; value: string | number; label: string; color?: string; href?: string; title?: string; } export default function StatsCard({ icon, value, label, color = "#00285d", href, title }: StatsCardProps) { const card = (
{value}
{label} {href && }
); if (href) { return ( {card} ); } return card; }