Files
pn-new-crm/src/app/(dashboard)/[portSlug]/berths/[berthId]/loading.tsx

30 lines
1.0 KiB
TypeScript
Raw Normal View History

import { Skeleton } from '@/components/ui/skeleton';
import { CardSkeleton } from '@/components/shared/loading-skeleton';
export default function Loading() {
return (
<div className="space-y-6">
<div className="space-y-3 rounded-xl border border-border bg-card px-5 py-4 shadow-sm">
<div className="flex items-center gap-3">
<Skeleton className="h-12 w-13 rounded-2xl" />
<Skeleton className="h-7 w-32" />
<Skeleton className="h-6 w-24 rounded-full" />
</div>
<div className="flex flex-wrap gap-2">
<Skeleton className="h-9 w-32 rounded-md" />
<Skeleton className="h-9 w-20 rounded-md" />
</div>
</div>
<div className="flex gap-2 border-b border-border pb-1">
{Array.from({ length: 4 }).map((_, i) => (
<Skeleton key={i} className="h-8 w-24 rounded-md" />
))}
</div>
<div className="grid grid-cols-1 gap-6 md:grid-cols-2">
<CardSkeleton />
<CardSkeleton />
</div>
</div>
);
}