import * as React from "react"; import { Skeleton } from "./skeleton"; import { TableBody, TableCell, TableRow } from "./table"; interface IProps { length?: number; column: number; cellColSpan?: number; } const TableSkeleton = React.forwardRef( ({ column, length = 20, cellColSpan = 100 }, ref) => { return ( {Array.from({ length }).map((_, i) => ( {Array.from({ length: column }).map((_, j) => ( ))} ))} ); }, ); TableSkeleton.displayName = "TableSkeleton"; export default TableSkeleton;