mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-09-07 11:55:42 +00:00
17 lines
484 B
TypeScript
17 lines
484 B
TypeScript
import { Table as TanstackTable } from "@tanstack/react-table";
|
|
|
|
import { Skeleton } from "../skeleton";
|
|
import { TableCell, TableRow } from "../table";
|
|
|
|
export function DataTableSkeleton({ table }: { table: TanstackTable<any> }) {
|
|
return Array.from({ length: 10 }).map((_, i) => (
|
|
<TableRow key={i}>
|
|
{table.getAllColumns().map((column) => (
|
|
<TableCell key={column.id}>
|
|
<Skeleton className="h-8" />
|
|
</TableCell>
|
|
))}
|
|
</TableRow>
|
|
));
|
|
}
|