/* eslint-disable react-refresh/only-export-components */ import { createRoot } from "react-dom/client"; import { StrictMode, lazy, Suspense } from "react"; const KcLoginThemeApp = lazy(() => import("./login/KcApp")); const KcAccountThemeApp = lazy(() => import("./account/KcApp")); // NOTE: This is just to test a specific page when you run `yarn dev` // however the recommended way to develope is to use the Storybook if (window.kcContext === undefined) { window.kcContext = (await import("./login/PageStory")).getKcContextMock({ pageId: "register.ftl" }); } createRoot(document.getElementById("root")!).render( {(() => { switch (window.kcContext?.themeType) { case "login": return ; case "account": return ; case undefined: return

No Keycloak Context

; } })()}
);