import React from "react" import { cn } from "@/lib/utils" export function Skeleton({ className, style }: { className?: string; style?: React.CSSProperties }) { return (
) } export function DashboardSkeleton() { return (
{/* Greeting */}
{/* Stats grid */}
{Array.from({ length: 4 }).map((_, i) => (
))}
{/* Revenue + Quick Actions */}
{[40, 65, 80, 55, 90, 70].map((h, i) => ( ))}
{Array.from({ length: 6 }).map((_, i) => ( ))}
{/* Two col layout */}
{[0, 1].map((i) => (
{Array.from({ length: 4 }).map((_, j) => (
))}
))}
) } export function TableSkeleton({ rows = 5, cols = 4 }: { rows?: number; cols?: number }) { return (
{Array.from({ length: cols }).map((_, i) => ( ))}
{Array.from({ length: rows }).map((_, i) => (
{Array.from({ length: cols }).map((_, j) => ( ))}
))}
) } export function CardGridSkeleton({ cards = 6 }: { cards?: number }) { return (
{Array.from({ length: cards }).map((_, i) => (
))}
) }