import React from "react";
import type { Meta, StoryObj } from "@storybook/react";
import { createPageStory } from "../PageStory";

const { PageStory } = createPageStory({ pageId: "error.ftl" });

const meta = {
    title: "login/error.ftl",
    component: PageStory
} satisfies Meta<typeof PageStory>;

export default meta;

type Story = StoryObj<typeof meta>;

export const Default: Story = {
    render: () => <PageStory />
};

export const WithAnotherMessage: Story = {
    render: () => (
        <PageStory
            kcContext={{
                message: { summary: "With another error message" }
            }}
        />
    )
};
