import { Card, CardContent } from '@/components/ui/card' import { Skeleton } from '@/components/ui/skeleton' import type { Stats } from '../../types' interface KPICardsProps { stats: Stats | undefined isLoading: boolean } interface KPICardProps { title: string value: number | string isLoading: boolean valueClass?: string } function KPICard({ title, value, isLoading, valueClass }: KPICardProps) { return ( {isLoading ? ( <> ) : ( <>

{value}

{title}

)}
) } export function KPICards({ stats, isLoading }: KPICardsProps) { return (
0 ? 'text-destructive' : undefined} /> 0 ? 'text-green-500' : undefined} />
) }