import { createRoot } from "react-dom/client"; import { StrictMode, lazy, Suspense } from "react"; import { kcContext as kcLoginThemeContext } from "./keycloak-theme/login/kcContext"; import { kcContext as kcAccountThemeContext } from "./keycloak-theme/account/kcContext"; const KcLoginThemeApp = lazy(() => import("./keycloak-theme/login/KcApp")); const KcAccountThemeApp = lazy(() => import("./keycloak-theme/account/KcApp")); const App = lazy(() => import("./App")); createRoot(document.getElementById("root")!).render( {(()=>{ if( kcLoginThemeContext !== undefined ){ return ; } if( kcAccountThemeContext !== undefined ){ return ; } return ; })()} );