import type { ReactNode } from "react"; import Link from "next/link"; import { cn } from "@/lib/utils"; export function StatCard({ label, value, icon, gradient = "grad-primary", delta, hint, href, }: { label: string; value: ReactNode; icon: ReactNode; gradient?: string; delta?: string; hint?: string; href?: string; }) { const body = (
{icon}

{label}

{value}

{delta ? {delta} : null}
{hint ?

{hint}

: null}
); if (href) return {body}; return body; }