import { jsx as _jsx } from "react/jsx-runtime";
import { Spinner } from "../../../components/atoms/Spinner";
import { cn } from "../../../utils/cn";
/**
 * Full-page loading screen with centered spinner and message.
 * Use in route loading.tsx, suspense fallbacks, or inline loading states.
 */
export const LoadingScreen = ({ message = "Loading...", className, testId, }) => {
    return (_jsx("div", { className: cn("min-h-screen bg-white dark:bg-black flex items-center justify-center", className), "data-testid": testId, children: _jsx("div", { className: "text-center", children: _jsx(Spinner, { size: "lg", label: message, testId: testId ? `${testId}.spinner` : undefined }) }) }));
};
export default LoadingScreen;
