import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"; import { Skeleton } from "@/components/ui/skeleton"; // Chart skeleton for revenue trends and order analytics export function ChartSkeleton({ title, description, icon: Icon, showStats = false }: { title: string; description: string; icon: any; showStats?: boolean; }) { return ( {title} {description}
{/* Chart area */}
{/* Summary stats if applicable */} {showStats && (
{[...Array(3)].map((_, i) => (
))}
)}
); } // Table skeleton for product performance export function TableSkeleton({ title, description, icon: Icon, rows = 5, columns = 5 }: { title: string; description: string; icon: any; rows?: number; columns?: number; }) { return ( {title} {description}
{/* Table header */}
{[...Array(columns)].map((_, i) => ( ))}
{/* Table rows */} {[...Array(rows)].map((_, rowIndex) => (
{[...Array(columns)].map((_, colIndex) => (
{colIndex === 0 && ( )}
))}
))}
); } // Customer insights skeleton with segments export function CustomerInsightsSkeleton({ title, description, icon: Icon }: { title: string; description: string; icon: any; }) { return ( {title} {description}
{/* Customer segments */}
{[...Array(4)].map((_, i) => (
))}
{/* Top customers table */}
{[...Array(5)].map((_, i) => (
))}
); } // Metrics card skeleton export function MetricsCardSkeleton() { return (
); }