diff --git a/dashboard/src/components/ui/data-table-fallback.tsx b/dashboard/src/components/ui/data-table-fallback.tsx new file mode 100644 index 0000000..0825b14 --- /dev/null +++ b/dashboard/src/components/ui/data-table-fallback.tsx @@ -0,0 +1,53 @@ +import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from '@/components/ui/table'; +import { Skeleton } from '@/components/ui/skeleton'; + +interface DataTableFallbackProps { + columnCount: number, + rowCount: number, +} + +export async function DataTableFallback({ columnCount, rowCount }: DataTableFallbackProps) { + + const columns: string[] = []; + for (let i = 0; i < columnCount; i++) { + columns.push(''); + } + + const rows: string[] = []; + for (let i = 0; i < rowCount; i++) { + rows.push(''); + } + + return ( +