77 lines
2.5 KiB
TypeScript
77 lines
2.5 KiB
TypeScript
import { Card, CardContent, CardHeader } from "@/components/ui/card"
|
|
import { Skeleton } from "@/components/ui/skeleton"
|
|
|
|
export default function UsersLoading() {
|
|
return (
|
|
<div className="space-y-6">
|
|
{/* Header */}
|
|
<div className="flex flex-col sm:flex-row sm:items-center sm:justify-between">
|
|
<div>
|
|
<Skeleton className="h-8 w-48 mb-2" />
|
|
<Skeleton className="h-4 w-64" />
|
|
</div>
|
|
<Skeleton className="h-10 w-48 mt-4 sm:mt-0" />
|
|
</div>
|
|
|
|
{/* Stats */}
|
|
<div className="grid grid-cols-1 md:grid-cols-4 gap-4">
|
|
{[...Array(4)].map((_, i) => (
|
|
<Card key={i}>
|
|
<CardContent className="p-6">
|
|
<div className="flex items-center">
|
|
<Skeleton className="h-8 w-8" />
|
|
<div className="ml-4">
|
|
<Skeleton className="h-4 w-16 mb-2" />
|
|
<Skeleton className="h-8 w-12" />
|
|
</div>
|
|
</div>
|
|
</CardContent>
|
|
</Card>
|
|
))}
|
|
</div>
|
|
|
|
{/* Filters */}
|
|
<Card>
|
|
<CardContent className="p-6">
|
|
<div className="flex flex-col sm:flex-row gap-4">
|
|
<Skeleton className="h-10 flex-1" />
|
|
<Skeleton className="h-10 w-48" />
|
|
<Skeleton className="h-10 w-48" />
|
|
</div>
|
|
</CardContent>
|
|
</Card>
|
|
|
|
{/* Table */}
|
|
<Card>
|
|
<CardHeader>
|
|
<Skeleton className="h-6 w-48" />
|
|
</CardHeader>
|
|
<CardContent>
|
|
<div className="space-y-4">
|
|
{[...Array(5)].map((_, i) => (
|
|
<div key={i} className="flex items-center space-x-4 p-4">
|
|
<Skeleton className="h-4 w-4" />
|
|
<Skeleton className="h-10 w-10 rounded-full" />
|
|
<div className="flex-1">
|
|
<Skeleton className="h-4 w-32 mb-2" />
|
|
<Skeleton className="h-3 w-48" />
|
|
</div>
|
|
<Skeleton className="h-6 w-20" />
|
|
<Skeleton className="h-6 w-16" />
|
|
<Skeleton className="h-4 w-24" />
|
|
<Skeleton className="h-4 w-16" />
|
|
<Skeleton className="h-4 w-20" />
|
|
<div className="flex space-x-2">
|
|
<Skeleton className="h-8 w-8" />
|
|
<Skeleton className="h-8 w-8" />
|
|
<Skeleton className="h-8 w-8" />
|
|
</div>
|
|
</div>
|
|
))}
|
|
</div>
|
|
</CardContent>
|
|
</Card>
|
|
</div>
|
|
)
|
|
}
|