import { LoadingSkeleton } from "./loading-skeleton"; import { PageBackground } from "./page-background"; type PageLoadingSkeletonProps = { compact?: boolean; variant?: "profile" | "questions" | "test"; }; /** Shared full-page loading state for the mobile frontend. */ export function PageLoadingSkeleton({ compact = false, variant = "profile", }: PageLoadingSkeletonProps) { if (variant === "questions" || variant === "test") { return ( <>
{/* Header */}
{/* Progress Section */}
{/* Question Section */} {variant === "questions" ? (
) : (
{[1, 2, 3].map((i) => ( ))}
)}
); } return ( <>
{!compact && (
)}
); }