interface SkeletonProps { variant?: 'text' | 'heading' | 'chart' | 'card'; width?: string; height?: string; count?: number; } export function Skeleton({ variant = 'text', width, height, count = 1 }: SkeletonProps) { const className = `skeleton skeleton-${variant}`; const style = { width, height }; return ( <> {Array.from({ length: count }, (_, i) => (
))} ); } export function CardSkeleton() { return (
); } export function StatsSkeleton() { return (
{Array.from({ length: 4 }, (_, i) => (
))}
); }