import { Skeleton } from '@/components/ui/skeleton' import { cn } from '@/lib/utils' interface DetailPageSkeletonProps { /** Number of summary cards under the title row. */ cards?: 2 | 3 /** Full-width variant for MainContainer's wide routes (max-w-7xl). */ wide?: boolean className?: string } /** * Silhouette of a register/document detail page: back link, title row with * action pills, then a card grid. Used both as the route-level loading.tsx of * the [id] segments and as the client page's own loading state, so the * handoff from the RSC fallback to the client fetch is a no-op visually * instead of skeleton -> centred spinner -> content (three unrelated layouts * on the most-travelled drill-down path). */ export function DetailPageSkeleton({ cards = 2, wide = false, className }: DetailPageSkeletonProps) { return (