import { cn } from '@utils/cn'; import { Skeleton } from './Skeleton'; export interface SkeletonTableProps { rows?: number; columns?: number; showHeader?: boolean; animate?: boolean; className?: string; } export function SkeletonTable({ rows = 5, columns = 4, showHeader = true, animate = true, className, }: SkeletonTableProps) { return (
{showHeader && ( {Array.from({ length: columns }).map((_, colIndex) => ( ))} )} {Array.from({ length: rows }).map((_, rowIndex) => ( {Array.from({ length: columns }).map((_, colIndex) => ( ))} ))}
); } // Alternative: Simple row-based skeleton for lists export interface SkeletonTableRowsProps { rows?: number; animate?: boolean; className?: string; } export function SkeletonTableRows({ rows = 5, animate = true, className, }: SkeletonTableRowsProps) { return (
{Array.from({ length: rows }).map((_, index) => (
))}
); }