import { Box, Button, Dialog, Text, color, config } from 'folds';
import React from 'react';
import { useTranslation } from 'react-i18next';
import { AuthSplashScreen } from './auth/AuthSplashScreen';
export function ConfigConfigLoading() {
return ;
}
// Element Web's pattern: blocking ErrorView with retry-only on config failure.
// Continuing past a missing config produces a half-broken login (empty
// homeserverList → no server allowed) and is worse UX than asking the user
// to retry. The 10s fetch timeout in ClientConfigLoader already filters out
// transient network blips so this modal only fires on real outages.
type ConfigConfigErrorProps = {
error: unknown;
retry: () => void;
};
export function ConfigConfigError({ error, retry }: ConfigConfigErrorProps) {
const { t } = useTranslation();
return (
);
}