import { cn } from "@/lib/utils"; import type { ReactNode } from "react"; interface StatCardProps { title: string; value: string; subtitle?: string; icon: ReactNode; trend?: { value: string; positive: boolean }; className?: string; } export function StatCard({ title, value, subtitle, icon, trend, className }: StatCardProps) { return (

{title}

{value}

{subtitle &&

{subtitle}

} {trend && ( {trend.positive ? "↑" : "↓"} {trend.value} )}
{icon}
); }