keycloakify-custom/src/kc.gen.tsx

54 lines
1.1 KiB
TypeScript
Raw Normal View History

2024-07-27 15:11:30 +00:00
/* 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> = {};
2024-07-27 15:49:45 +00:00
export type KcContext =
2024-07-27 15:36:39 +00:00
| import("./login/KcContext").KcContext
;
2024-07-27 15:11:30 +00:00
declare global {
interface Window {
kcContext?: KcContext;
}
}
export const KcLoginPage = lazy(() => import("./login/KcPage"));
2024-07-27 15:36:39 +00:00
export function KcPage(
props: {
kcContext: KcContext;
fallback?: ReactNode;
}
) {
2024-07-27 15:11:30 +00:00
const { kcContext, fallback } = props;
return (
<Suspense fallback={fallback}>
{(() => {
switch (kcContext.themeType) {
2024-07-27 15:36:39 +00:00
case "login": return <KcLoginPage kcContext={kcContext} />;
2024-07-27 15:11:30 +00:00
}
})()}
</Suspense>
2024-07-27 15:49:45 +00:00
);
2024-07-27 15:11:30 +00:00
}
/* prettier-ignore-end */