import { Card, CardContent } from '@kit/ui/card'; interface StatsCardProps { title: string; value: string | number; icon?: React.ReactNode; description?: string; trend?: { value: number; label: string }; } /** * Reusable stat card with icon + value + label + optional trend. * Used on dashboard and list pages. */ export function StatsCard({ title, value, icon, description, trend }: StatsCardProps) { return (

{title}

{value}

{description && (

{description}

)}
{icon && (
{icon}
)}
{trend && (
= 0 ? 'text-green-600' : 'text-red-600'}> {trend.value >= 0 ? '↑' : '↓'} {Math.abs(trend.value)}% {trend.label}
)}
); }