import type { Meta, StoryObj } from '@storybook/angular'; import { decorators, KcPageStory } from '../KcPageStory'; const meta: Meta = { title: 'login/webauthn-error.ftl', component: KcPageStory, decorators: decorators, globals: { pageId: 'webauthn-error.ftl' } }; export default meta; type Story = StoryObj; export const Default: Story = {}; export const WithRetryAvailable: Story = { globals: { kcContext: { url: { loginAction: '/mock-login-action' }, isAppInitiatedAction: false, message: { summary: 'WebAuthn authentication failed. Please try again.', type: 'error' } } } }; export const WithAppInitiatedAction: Story = { globals: { kcContext: { url: { loginAction: '/mock-login-action' }, isAppInitiatedAction: true, message: { summary: 'WebAuthn authentication failed. You can try again or cancel.', type: 'error' } } } }; export const WithJavaScriptDisabled: Story = { globals: { kcContext: { url: { loginAction: '/mock-login-action' }, isAppInitiatedAction: false, message: { summary: 'JavaScript is disabled or not working. Please retry manually.', type: 'warning' } } } };