import type { Density, TableVariant } from './types' type Column = { key: string; width?: string } import { DENSITY_TD, VARIANT_TBODY, VARIANT_ROW_BORDER } from './constants' type SkeletonProps = { columns: Column[] rows: number variant: TableVariant density: Density hasMenu: boolean hasSelect: boolean } export default function Skeleton({ columns, rows, variant, density, hasMenu, hasSelect }: SkeletonProps) { return ( {Array.from({ length: rows }).map((_, rowIdx) => ( {hasSelect && ( )} {columns.map((col, colIdx) => ( ))} {hasMenu && ( )} ))} ) }