2024-06-03 01:23:28 +02:00
|
|
|
import React from "react";
|
|
|
|
import type { Meta, StoryObj } from "@storybook/react";
|
2024-06-09 11:53:25 +02:00
|
|
|
import { createKcPageStory } from "../KcPageStory";
|
2024-06-03 01:23:28 +02:00
|
|
|
|
2024-06-09 11:53:25 +02:00
|
|
|
const { KcPageStory } = createKcPageStory({ pageId: "delete-credential.ftl" });
|
2024-06-03 01:23:28 +02:00
|
|
|
|
|
|
|
const meta = {
|
2024-06-06 07:28:34 +02:00
|
|
|
title: "login/delete-credential.ftl",
|
2024-06-09 11:53:25 +02:00
|
|
|
component: KcPageStory
|
|
|
|
} satisfies Meta<typeof KcPageStory>;
|
2024-06-03 01:23:28 +02:00
|
|
|
|
|
|
|
export default meta;
|
|
|
|
|
|
|
|
type Story = StoryObj<typeof meta>;
|
|
|
|
|
|
|
|
export const Default: Story = {
|
2024-06-09 11:53:25 +02:00
|
|
|
render: () => <KcPageStory />
|
2024-06-03 01:23:28 +02:00
|
|
|
};
|
2024-09-29 04:35:02 -04:00
|
|
|
export const WithCustomCredentialLabel: Story = {
|
|
|
|
render: () => (
|
|
|
|
<KcPageStory
|
|
|
|
kcContext={{
|
|
|
|
credentialLabel: "Test Credential",
|
|
|
|
url: { loginAction: "/login-action" }
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
)
|
|
|
|
};
|