import type { ReactNode } from 'react'; import { Card } from './Card'; interface StatCardProps { title: string; value: string | number; subtitle?: string; icon: ReactNode; iconBgColor: string; valueColor: string; borderColor: string; } export function StatCard({ title, value, subtitle, icon, iconBgColor, valueColor, borderColor, }: StatCardProps) { return (
{icon}

{title}

{value}

{subtitle &&

{subtitle}

}
); }