import { Skeleton } from "@/components/ui/skeleton"; import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow, } from "@/components/ui/table"; import { cn } from "@/lib/utils"; type TableSkeletonProps = { headers: string[]; length: number; }; export default function TableSkeleton({ headers, length }: TableSkeletonProps) { return ( <>
{headers.map((header, index) => ( {header} ))} {Array.from({ length }).map((_, i) => ( {headers.map((_, index) => ( ))} ))}
{Array.from({ length }).map((_, i) => ( ))}
); } function DeviceCardSkeleton() { return (
); }