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";
|
2024-06-06 07:28:34 +02:00
|
|
|
import { createPageStory } from "../PageStory";
|
2023-04-20 02:54:24 +02:00
|
|
|
|
2024-06-06 07:28:34 +02:00
|
|
|
const { PageStory } = createPageStory({ pageId: "password.ftl" });
|
2023-04-20 02:54:24 +02:00
|
|
|
|
2024-05-17 12:17:17 +03:00
|
|
|
const meta = {
|
2024-06-06 07:28:34 +02:00
|
|
|
title: "account/password.ftl",
|
|
|
|
component: PageStory
|
2024-05-17 12:17:17 +03:00
|
|
|
} 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>;
|
2023-08-11 12:13:40 +02:00
|
|
|
|
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" }
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
)
|
|
|
|
};
|