import type { Meta, StoryObj } from "@storybook/react";
import { createKcPageStory } from "../KcPageStory";

const { KcPageStory } = createKcPageStory({ pageId: "qr-login-verify.ftl" });

const meta = {
    title: "login/qr-login-verify.ftl",
    component: KcPageStory
} satisfies Meta<typeof KcPageStory>;

export default meta;

type Story = StoryObj<typeof meta>;

export const Default: Story = {
    render: () => (
        <KcPageStory
            kcContext={{
                ua_device: "Desktop",
                ua_os: "macOS",
                ua_agent: "Chrome",
                local_localized: "English",
                tabId: "GvAAhBUeVqw",
                approveURL: "#approve",
                rejectURL: "#reject"
            }}
        />
    )
};
