2024-05-17 12:14:47 +03:00
|
|
|
import React from "react";
|
2024-06-03 00:11:19 +02:00
|
|
|
import type { Meta, StoryObj } from "@storybook/react";
|
2024-06-05 21:13:58 +02:00
|
|
|
import { createPageStory, parameters } from "../PageStory";
|
2024-05-17 12:14:47 +03:00
|
|
|
|
|
|
|
const pageId = "federatedIdentity.ftl";
|
|
|
|
|
|
|
|
const { PageStory } = createPageStory({ pageId });
|
|
|
|
|
|
|
|
const meta = {
|
2024-06-03 00:11:19 +02:00
|
|
|
title: `account/${pageId}`,
|
|
|
|
component: PageStory,
|
|
|
|
parameters
|
2024-05-17 12:14:47 +03:00
|
|
|
} satisfies Meta<typeof PageStory>;
|
|
|
|
|
|
|
|
export default meta;
|
|
|
|
|
2024-06-03 00:11:19 +02:00
|
|
|
type Story = StoryObj<typeof meta>;
|
2024-05-17 12:14:47 +03:00
|
|
|
|
2024-06-03 00:11:19 +02:00
|
|
|
export const Default: Story = {
|
|
|
|
render: () => <PageStory />
|
|
|
|
};
|
|
|
|
|
|
|
|
export const NotConnected: Story = {
|
|
|
|
render: () => (
|
|
|
|
<PageStory
|
|
|
|
kcContext={{
|
|
|
|
pageId: "federatedIdentity.ftl",
|
|
|
|
federatedIdentity: {
|
|
|
|
identities: [
|
|
|
|
{
|
|
|
|
providerId: "google",
|
|
|
|
displayName: "keycloak-oidc",
|
|
|
|
connected: false
|
|
|
|
}
|
|
|
|
],
|
|
|
|
removeLinkPossible: true
|
|
|
|
}
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
)
|
|
|
|
};
|