import { statColor } from "../lib/utils"; interface StatCardProps { label: string; value: string; sub?: string; percent?: number; delay?: number; } export default function StatCard({ label, value, sub, percent, delay = 0 }: StatCardProps) { const pct = percent ?? 0; const color = statColor(pct); return (
{label} {value} {sub && ( {sub} )} {percent !== undefined && (
)}
); }