/* eslint-disable jsx-a11y/anchor-is-valid */ import React from 'react' import { type Meta, type StoryObj } from '@storybook/react' import isChromatic from 'chromatic' import { Icon } from '~components/Icon' import { BrandMomentCaptureIntro, BrandMomentError, BrandMomentPositiveOutro, type AnimatedSceneProps, } from '~components/Illustration' import { Text } from '~components/Text' import { BrandMoment } from '../index' import { FakeNavBar, MinimalBasic, MinimalCustomerFocused } from './ExampleHeaders' const IS_CHROMATIC = isChromatic() const illustrationProps = ( IS_CHROMATIC ? {} : { isAnimated: true, loop: true } ) satisfies AnimatedSceneProps const meta = { title: 'Pages/BrandMoment', component: BrandMoment, argTypes: { illustration: { control: false }, header: { control: false }, }, } satisfies Meta export default meta type Story = StoryObj export const Playground: Story = { args: { variant: 'informative', illustration: , header: , text: { subtitle: 'Welcome to Culture Amp', title: "Let's dive in and see how it works", }, }, } export const Informative: Story = { args: { variant: 'informative', illustration: , header: , text: { subtitle: 'Welcome to Culture Amp', title: "Let's dive in and see how it works", }, primaryAction: { label: 'Get started', href: '#', icon: , iconPosition: 'end', }, }, } export const Success: Story = { args: { variant: 'success', illustration: , header: , text: { subtitle: 'Manager Effectiveness Survey', title: "That's it — thank you", body: ( <> Your responses have been securely recorded. If you need to, you can{' '} retake the survey. ), footer: ( <> Your responses and information are securely collected and kept by Culture Amp in accordance with our Privacy Policy. Your responses will be reported to Hooli based on the specific rules for this survey. If you have any additional questions, please contact us at support@cultureamp.com. ), }, primaryAction: { label: 'Go to Home', href: '#', icon: , iconPosition: 'end', }, secondaryAction: { label: 'Rate this survey', icon: , }, }, } export const Warning: Story = { args: { variant: 'warning', illustration: , header: , text: { title: 'Page not found', }, body: ( <>
Sorry but we can't find the page you're looking for. Go back and try again, or head to Home.
Error code 404 ), primaryAction: { label: 'Go to Home', href: '#', icon: , iconPosition: 'end', }, secondaryAction: { label: 'Contact support', icon: , }, }, }