mirror of
https://github.com/yusufipk/OpenFrame.git
synced 2026-09-11 09:36:08 +00:00
45 lines
1.3 KiB
TypeScript
45 lines
1.3 KiB
TypeScript
import { Skeleton } from '@/components/ui/skeleton';
|
|
import { Card, CardHeader, CardContent } from '@/components/ui/card';
|
|
|
|
function WorkspaceCardSkeleton() {
|
|
return (
|
|
<Card className="h-full">
|
|
<CardHeader>
|
|
<div className="flex items-center gap-2">
|
|
<Skeleton className="h-5 w-5 rounded" />
|
|
<Skeleton className="h-5 w-36" />
|
|
</div>
|
|
<Skeleton className="h-4 w-full mt-1" />
|
|
<Skeleton className="h-4 w-1/2" />
|
|
</CardHeader>
|
|
<CardContent>
|
|
<div className="flex items-center gap-4">
|
|
<Skeleton className="h-4 w-14" />
|
|
<Skeleton className="h-4 w-20" />
|
|
<Skeleton className="h-4 w-8" />
|
|
</div>
|
|
</CardContent>
|
|
</Card>
|
|
);
|
|
}
|
|
|
|
export default function WorkspacesLoading() {
|
|
return (
|
|
<div className="px-6 lg:px-8 py-8 w-full">
|
|
<div className="flex items-center justify-between mb-8">
|
|
<div>
|
|
<Skeleton className="h-9 w-48" />
|
|
<Skeleton className="h-4 w-72 mt-2" />
|
|
</div>
|
|
<Skeleton className="h-9 w-40 rounded-md" />
|
|
</div>
|
|
|
|
<div className="grid gap-4 md:grid-cols-2 lg:grid-cols-3">
|
|
{Array.from({ length: 6 }).map((_, i) => (
|
|
<WorkspaceCardSkeleton key={i} />
|
|
))}
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|