import React from "react"; import type { KcContext } from "./kcContext"; import { getKcContextMock } from "./kcContextMock"; import KcApp from "./KcApp"; import type { DeepPartial } from "../../dist/tools/DeepPartial"; 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 }; } export const parameters = { viewMode: "story", previewTabs: { "storybook/docs/panel": { hidden: true } } };