i18n need to be passed as props if we want to be able to ovewrite
This commit is contained in:
@ -1,12 +1,13 @@
|
||||
import type { ReactNode } from "react";
|
||||
import type { KcContext } from "./KcContext";
|
||||
|
||||
export type TemplateProps<KcContext extends KcContext.Common> = {
|
||||
export type TemplateProps<KcContext, I18n> = {
|
||||
kcContext: KcContext;
|
||||
i18n: I18n;
|
||||
doUseDefaultCss: boolean;
|
||||
active: string;
|
||||
classes?: Partial<Record<ClassKey, string>>;
|
||||
children: ReactNode;
|
||||
|
||||
active: string;
|
||||
};
|
||||
|
||||
export type ClassKey =
|
||||
|
Reference in New Issue
Block a user