import { cn } from "@/lib/utils"; import type { LucideIcon } from "lucide-react"; import { Card, CardContent, CardHeader } from "@/components/ui/card"; import { Badge } from "@/components/ui/badge"; export function StatCard({ title, value, subtitle, icon: Icon, trend, trendLabel, }: { title: string; value: string | number; subtitle?: string; icon: LucideIcon; trend?: "up" | "down" | "neutral"; trendLabel?: string; }) { return (

{title}

{value}
{trend && trendLabel && ( {trend === "up" ? "+" : trend === "down" ? "−" : ""} {trendLabel} )} {subtitle && ( {subtitle} )}
); }