keycloak_theme/stories/account/pages/Pasword.stories.tsx

32 lines
701 B
TypeScript
Raw Normal View History

2023-04-20 02:54:24 +02:00
import React from "react";
2024-06-03 00:11:19 +02:00
import type { Meta, StoryObj } from "@storybook/react";
import { createPageStory, parameters } from "../createPageStory";
2023-04-20 02:54:24 +02:00
const pageId = "password.ftl";
const { PageStory } = createPageStory({ pageId });
const meta = {
2024-06-03 00:11:19 +02:00
title: `account/${pageId}`,
component: PageStory,
parameters
} satisfies Meta<typeof PageStory>;
2023-04-20 02:54:24 +02:00
export default meta;
2024-06-03 00:11:19 +02:00
type Story = StoryObj<typeof meta>;
2024-06-03 00:11:19 +02:00
export const Default: Story = {
render: () => <PageStory />
};
export const WithMessage: Story = {
render: () => (
<PageStory
kcContext={{
message: { type: "success", summary: "This is a test message" }
}}
/>
)
};