import { lazy, Suspense } from "react"; import type { PageProps } from "keycloakify/account/pages/PageProps"; import type { I18n } from "keycloakify/account/i18n"; import type { KcContext } from "./kcContext"; import { assert, type Equals } from "tsafe/assert"; const Password = lazy(() => import("keycloakify/account/pages/Password")); const Account = lazy(() => import("keycloakify/account/pages/Account")); export default function Fallback(props: PageProps) { const { kcContext, ...rest } = props; return ( {(() => { switch (kcContext.pageId) { case "password.ftl": return ; case "account.ftl": return ; } assert>(false); })()} ); }