18 lines
501 B
TypeScript
Raw Normal View History

2024-06-05 06:10:11 +02:00
import React from "react";
2024-06-05 18:50:00 +02:00
import Fallback from "../../dist/account/Fallback";
2023-04-20 02:52:49 +02:00
import type { KcContext } from "./kcContext";
import { useI18n } from "./i18n";
2024-06-05 06:10:11 +02:00
import Template from "../../dist/account/Template";
2023-04-20 02:52:49 +02:00
export default function KcApp(props: { kcContext: KcContext }) {
const { kcContext } = props;
const i18n = useI18n({ kcContext });
if (i18n === null) {
return null;
}
2024-06-05 06:10:11 +02:00
return <Fallback {...{ kcContext, i18n }} Template={Template} doUseDefaultCss={true} />;
2023-04-20 02:52:49 +02:00
}