import type { Meta, StoryObj } from '@storybook/angular'; import { decorators, KcPageStory } from '../KcPageStory'; const meta: Meta = { title: 'login/error.ftl', component: KcPageStory, decorators: decorators, globals: { pageId: 'error.ftl' } }; export default meta; type Story = StoryObj; export const Default: Story = {}; export const WithAnotherMessage: Story = { globals: { kcContext: { message: { summary: 'With another error message' } } } }; export const WithHtmlErrorMessage: Story = { globals: { kcContext: { message: { summary: "Error: Something went wrong. Go back" } } } }; export const FrenchError: Story = { globals: { kcContext: { locale: { currentLanguageTag: 'fr' }, message: { summary: "Une erreur s'est produite" } } } }; export const WithSkipLink: Story = { globals: { kcContext: { message: { summary: 'An error occurred' }, skipLink: true, client: { baseUrl: 'https://example.com' } } } };