import React from "react"; import type { ComponentMeta } from "@storybook/react"; import { createPageStory } from "../createPageStory"; const pageId = "register.ftl"; const { PageStory } = createPageStory({ pageId }); const meta: ComponentMeta = { title: `login/${pageId}`, component: PageStory, parameters: { viewMode: "story", previewTabs: { "storybook/docs/panel": { hidden: true } } } }; export default meta; export const Default = () => ; export const WithFieldError = () => ( fieldName === "email", exists: (fieldName: string) => fieldName === "email", get: (fieldName: string) => (fieldName === "email" ? "I don't like your email address" : undefined), printIfExists: (fieldName: string, x: T) => (fieldName === "email" ? x : undefined) } }} /> ); export const WithEmailAsUsername = () => ( ); export const WithoutPassword = () => ( ); export const WithRecaptcha = () => ( ); export const WithPresets = () => ( );