import { Card, CardContent } from "@/components/ui/card"; const accentColors: Record = { Containers: "from-blue-500 to-blue-600", "Hosts Online": "from-green-500 to-emerald-600", GPU: "from-violet-500 to-purple-600", "Emails Today": "from-amber-500 to-orange-600", Alerts: "from-red-500 to-rose-600", }; interface StatCardProps { label: string; value: string | number; sub?: React.ReactNode; } export function StatCard({ label, value, sub }: StatCardProps) { const gradient = accentColors[label] ?? "from-blue-500 to-blue-600"; return (

{label}

{value}

{sub &&
{sub}
}
); }