import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'; import { LucideIcon } from 'lucide-react'; import { ReactNode } from 'react'; interface KPICardProps { title: string; value: string | number; icon: LucideIcon; iconBgColor: string; iconColor: string; subtitle?: string; children?: ReactNode; testId?: string; onClick?: () => void; } export function KPICard({ title, value, icon: Icon, iconBgColor, iconColor, subtitle, children, testId = 'kpi-card', onClick }: KPICardProps) { return ( {title}
{value}
{subtitle && (
{subtitle}
)} {children && (
{children}
)}
); }