import { type LayoutVariant, maxWidthClasses, variantToWidth } from '@/components/ContentPanel';
import { Skeleton } from '@/components/ui/skeleton';
import { cn } from '@/lib/utils';
/**
* Route-level Suspense fallback for lazy sidebar pages. It renders before the
* page chunk loads, so it can't mirror the page's internal layout — but it does
* match the page's *width* (via `variant`, derived from the URL in SidebarLayout)
* and the PageHeader + ContentPanel padding, so content doesn't jump on load.
*/
export function ContentSkeleton({ variant = 'default' }: { variant?: LayoutVariant }) {
const width = maxWidthClasses[variantToWidth[variant]];
return (
<>
{/* Mirrors PageHeader: h-10, mt-6, pr-8 */}