keycloak_theme/stories/login/pages/Terms.stories.tsx

43 lines
871 B
TypeScript
Raw Normal View History

2023-04-20 05:41:34 +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 05:41:34 +02:00
2024-06-06 07:28:34 +02:00
const { PageStory } = createPageStory({ pageId: "terms.ftl" });
2023-04-20 05:41:34 +02:00
2024-06-03 00:11:19 +02:00
const meta = {
2024-06-06 07:28:34 +02:00
title: "login/terms.ftl",
component: PageStory
2024-06-03 00:11:19 +02:00
} satisfies Meta<typeof PageStory>;
2023-04-20 05:41:34 +02:00
export default meta;
2024-06-03 00:11:19 +02:00
type Story = StoryObj<typeof meta>;
export const Default: Story = {
render: () => <PageStory />
};
2024-06-04 04:06:29 +02:00
export const French: Story = {
render: () => (
<PageStory
kcContext={{
locale: {
currentLanguageTag: "fr"
}
}}
/>
)
};
export const Spanish: Story = {
render: () => (
<PageStory
kcContext={{
locale: {
currentLanguageTag: "es"
}
}}
/>
)
};