27 lines
682 B
TypeScript
27 lines
682 B
TypeScript
|
import React from "react";
|
||
|
import type { ComponentMeta } from "@storybook/react";
|
||
|
import { createPageStory } from "./createPageStory";
|
||
|
|
||
|
const pageId = "error.ftl";
|
||
|
|
||
|
const { PageStory } = createPageStory({ pageId });
|
||
|
|
||
|
const meta: ComponentMeta<any> = {
|
||
|
"title": `login/${pageId}`,
|
||
|
"component": PageStory,
|
||
|
"parameters": {
|
||
|
"viewMode": "story",
|
||
|
"previewTabs": {
|
||
|
"storybook/docs/panel": {
|
||
|
"hidden": true
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
};
|
||
|
|
||
|
export default meta;
|
||
|
|
||
|
export const Default = () => <PageStory />;
|
||
|
|
||
|
export const WithAnotherMessage = () => <PageStory kcContext={{ "message": { "summary": "With another error message" } }} />;
|