import type { DeepPartial } from "keycloakify/tools/DeepPartial"; import type { KcContext } from "./KcContext"; import { createGetKcContextMock } from "keycloakify/account/KcContext"; import type { KcContextExtraProperties, KcContextExtraPropertiesPerPage } from "./KcContext"; import KcApp from "./KcApp"; const kcContextExtraProperties: KcContextExtraProperties = {}; const kcContextExtraPropertiesPerPage: KcContextExtraPropertiesPerPage = {}; export const { getKcContextMock } = createGetKcContextMock({ kcContextExtraProperties, kcContextExtraPropertiesPerPage, overrides: {}, overridesPerPage: {} }); export function createPageStory(params: { pageId: PageId; }) { const { pageId } = params; function PageStory(props: { kcContext?: DeepPartial>; }) { const { kcContext: overrides } = props; const kcContextMock = getKcContextMock({ pageId, overrides }); return ; } return { PageStory }; }