62 lines
2.1 KiB
TypeScript
62 lines
2.1 KiB
TypeScript
import { Card, CardContent, CardHeader, CardTitle } from "@/shared/components/ui/card"
|
|
import { Skeleton } from "@/shared/components/ui/skeleton"
|
|
|
|
export default function Loading() {
|
|
return (
|
|
<div className="space-y-6">
|
|
<div className="flex flex-col justify-between gap-4 md:flex-row md:items-center">
|
|
<div className="space-y-2">
|
|
<Skeleton className="h-9 w-48" />
|
|
<Skeleton className="h-4 w-56" />
|
|
</div>
|
|
<Skeleton className="h-10 w-40" />
|
|
</div>
|
|
|
|
<div className="grid gap-4 md:grid-cols-2 lg:grid-cols-4">
|
|
{Array.from({ length: 4 }).map((_, i) => (
|
|
<Card key={i}>
|
|
<CardHeader className="flex flex-row items-center justify-between space-y-0 pb-2">
|
|
<Skeleton className="h-4 w-24" />
|
|
<Skeleton className="h-4 w-4 rounded-full" />
|
|
</CardHeader>
|
|
<CardContent>
|
|
<Skeleton className="h-8 w-16" />
|
|
<Skeleton className="mt-2 h-3 w-28" />
|
|
</CardContent>
|
|
</Card>
|
|
))}
|
|
</div>
|
|
|
|
<div className="grid gap-4 md:grid-cols-2 lg:grid-cols-7">
|
|
<Card className="lg:col-span-3">
|
|
<CardHeader>
|
|
<CardTitle className="text-sm">
|
|
<Skeleton className="h-4 w-40" />
|
|
</CardTitle>
|
|
</CardHeader>
|
|
<CardContent className="space-y-3">
|
|
{Array.from({ length: 4 }).map((_, i) => (
|
|
<Skeleton key={i} className="h-10 w-full" />
|
|
))}
|
|
</CardContent>
|
|
</Card>
|
|
|
|
<Card className="lg:col-span-4">
|
|
<CardHeader className="flex flex-row items-center justify-between">
|
|
<CardTitle className="text-sm">
|
|
<Skeleton className="h-4 w-44" />
|
|
</CardTitle>
|
|
<Skeleton className="h-9 w-24" />
|
|
</CardHeader>
|
|
<CardContent className="space-y-2">
|
|
{Array.from({ length: 5 }).map((_, i) => (
|
|
<Skeleton key={i} className="h-10 w-full" />
|
|
))}
|
|
</CardContent>
|
|
</Card>
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|
|
|