import { useVoxtral } from "./VoxtralContext"; import { THEME } from "../constants"; import { AppGridBackground, ErrorMessageBox, useMountedTransition, } from "./SharedUI"; export const LoadingPage = () => { const { loadingProgress, loadingMessage, error } = useVoxtral(); const mounted = useMountedTransition(); const progressClamped = Math.min(100, Math.max(0, loadingProgress)); const isError = !!error; return (
{isError ? (
) : (
)}

{isError ? "Initialization Failed" : "Loading Model"}

{isError ? "Voxtral-Mini-4B-Realtime" : loadingMessage}

{!isError && (
PROGRESS {Math.round(progressClamped)}%

{`> ${loadingMessage}`}

)} {isError && (
)}
); };