31 lines
794 B
TypeScript
31 lines
794 B
TypeScript
import React from "react";
|
|
import type { Meta, StoryObj } from "@storybook/react";
|
|
import { createKcPageStory } from "../KcPageStory";
|
|
|
|
const { KcPageStory } = createKcPageStory({ pageId: "login-verify-email.ftl" });
|
|
|
|
const meta = {
|
|
title: "login/login-verify-email.ftl",
|
|
component: KcPageStory
|
|
} satisfies Meta<typeof KcPageStory>;
|
|
|
|
export default meta;
|
|
|
|
type Story = StoryObj<typeof meta>;
|
|
|
|
export const Default: Story = {
|
|
render: () => (
|
|
<KcPageStory
|
|
kcContext={{
|
|
message: {
|
|
summary: "You need to verify your email to activate your account.",
|
|
type: "warning"
|
|
},
|
|
user: {
|
|
email: "john.doe@gmail.com"
|
|
}
|
|
}}
|
|
/>
|
|
)
|
|
};
|