2023-03-20 05:14:25 +01:00
|
|
|
import type { ReactNode } from "react";
|
|
|
|
import type { KcContext } from "./kcContext";
|
|
|
|
import type { I18n } from "./i18n";
|
|
|
|
|
|
|
|
export type TemplateProps<KcContext extends KcContext.Common, I18nExtended extends I18n> = {
|
|
|
|
kcContext: KcContext;
|
|
|
|
i18n: I18nExtended;
|
|
|
|
doUseDefaultCss: boolean;
|
|
|
|
active: string;
|
2023-03-21 05:27:31 +01:00
|
|
|
classes?: Partial<Record<ClassKey, string>>;
|
2023-03-20 05:14:25 +01:00
|
|
|
children: ReactNode;
|
|
|
|
};
|
2023-03-21 05:27:31 +01:00
|
|
|
|
2023-09-22 15:51:18 +02:00
|
|
|
export type ClassKey = "kcHtmlClass" | "kcBodyClass" | "kcButtonClass" | "kcButtonPrimaryClass" | "kcButtonLargeClass" | "kcButtonDefaultClass";
|