import { getKcContext, type KcContext } from "./kcContext"; import KcApp from "./KcApp"; import type { DeepPartial } from "keycloakify/tools/DeepPartial"; export function createPageStory(params: { pageId: PageId; }) { const { pageId } = params; function PageStory(params: { kcContext?: DeepPartial>; }) { const { kcContext } = getKcContext({ mockPageId: pageId, storyPartialKcContext: params.kcContext }); return ( <> {/* If you import custom fonts in your index.html you have to import them in storybook as well*/} ); } return { PageStory }; }