import { memo } from "react"; import { kcContext } from "../kcContext"; import { assert } from "../tools/assert"; import type { KcPagesProperties } from "./KcProperties"; import { Login } from "./Login"; import { Register } from "./Register"; export type KcAppProps = { kcProperties?: KcPagesProperties; }; export const KcApp = memo((props: KcAppProps) => { const { kcProperties } = props; assert(kcContext !== undefined, "App is not currently served by a Keycloak server"); switch (kcContext.pageBasename) { case "login.ftl": return ; case "register.ftl": return ; } });