import { ShimmeringLoader } from 'ui-patterns/ShimmeringLoader' import type { DataTableColumn } from './types' interface DataTableLoadingProps { columns: DataTableColumn[] compact?: boolean selectable?: boolean numRows?: number } export function DataTableLoading({ columns, compact = false, selectable = false, numRows = 8, }: DataTableLoadingProps) { const rowHeight = compact ? 'h-7' : 'h-[35px]' return (
{Array.from({ length: numRows }).map((_, rowIdx) => (
{selectable && (
)} {columns.map((col, colIdx) => (
))} {/* row actions placeholder */}
))}
) }