Done implementing the templates and the two first pages

This commit is contained in:
garronej
2023-03-20 05:14:25 +01:00
parent 17871daf0c
commit 5b4aeca63c
43 changed files with 1036 additions and 35 deletions

View File

@ -1,15 +0,0 @@
import { clsx } from "keycloakify/tools/clsx";
import { useConstCallback } from "keycloakify/tools/useConstCallback";
export function useGetClassName<ClassKey extends string>(params: {
defaultClasses?: Record<ClassKey, string | undefined>;
classes?: Partial<Record<ClassKey, string>>;
}) {
const { defaultClasses, classes } = params;
const getClassName = useConstCallback((classKey: ClassKey): string => {
return clsx(classKey, defaultClasses?.[classKey], classes?.[classKey]);
});
return { getClassName };
}