import { LucideIcon } from 'lucide-react' interface StatCardProps { title: string value: string | number change?: number vsLastMonthLabel?: string icon: LucideIcon iconColor?: string iconBg?: string } export default function StatCard({ title, value, change, vsLastMonthLabel = 'vs last month', icon: Icon, iconColor = 'text-blue-600', iconBg = 'bg-blue-50', }: StatCardProps) { const isPositive = change !== undefined && change >= 0 const isNegative = change !== undefined && change < 0 return (

{title}

{value}

{change !== undefined && (
{isPositive ? '+' : ''}{change.toFixed(1)}% {vsLastMonthLabel}
)}
) }