import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow, } from "ui/table"; import { Input } from "ui/input"; import { Search, ChevronRight } from "lucide-react"; import { Skeleton } from "ui/skeleton"; import { Avatar, AvatarFallback } from "ui/avatar"; export function UsersTableSkeleton() { // Generate reasonable number of skeleton rows const skeletonRows = Array.from({ length: 8 }, (_, i) => i); return (
{/* Search Bar Section */}
{/* Total count skeleton */}
{/* Table Section */}
User Role Status Joined {skeletonRows.map((index) => ( {/* User Column */}
{/* Role Column */}
{/* Sometimes show a second role badge */} {index % 3 === 0 && ( )}
{/* Status Column */} {/* Joined Column */} {/* Arrow Column */}
))}
{/* Pagination Section */}
); }