keycloak-theme/src/kc.gen.tsx
Joseph Garrone 7ecf44df28 fmt
2024-07-27 17:49:45 +02:00

54 lines
1.1 KiB
TypeScript

/* prettier-ignore-start */
/* eslint-disable */
// @ts-nocheck
// noinspection JSUnusedGlobalSymbols
// This file is auto-generated by Keycloakify
import { lazy, Suspense, type ReactNode } from "react";
export type ThemeName = "keycloakify-starter";
export const themeNames: ThemeName[] = ["keycloakify-starter"];
export type KcEnvName = never;
export const kcEnvNames: KcEnvName[] = [];
export const kcEnvDefaults: Record<KcEnvName, string> = {};
export type KcContext =
| import("./login/KcContext").KcContext
;
declare global {
interface Window {
kcContext?: KcContext;
}
}
export const KcLoginPage = lazy(() => import("./login/KcPage"));
export function KcPage(
props: {
kcContext: KcContext;
fallback?: ReactNode;
}
) {
const { kcContext, fallback } = props;
return (
<Suspense fallback={fallback}>
{(() => {
switch (kcContext.themeType) {
case "login": return <KcLoginPage kcContext={kcContext} />;
}
})()}
</Suspense>
);
}
/* prettier-ignore-end */