import { HEADER_HEIGHT_PX, ROW_HEIGHT_PX } from '../constants' import { cn } from '../lib/cn' import { Skeleton } from '../ui/skeleton' type TableSkeletonProps = { /** Effective widths of the visible columns (pinned first). */ widths: number[] rowCount?: number /** * Uniform body row height. Mirrors a fixed/uniform `rowHeight` number; for * per-row, `'auto'`, or unset `rowHeight` it falls back to the default 56px. */ rowHeight?: number className?: string } const BODY_WIDTH_CYCLE = ['75%', '50%', '85%', '40%', '65%'] /** Loading skeleton mirroring the grid layout at the real column widths (spec ยง17). */ export function TableSkeleton({ widths, rowCount = 8, rowHeight = ROW_HEIGHT_PX, className, }: TableSkeletonProps) { const cols = widths.length > 0 ? widths : [200, 200, 200] return (