import React from 'react' import { type Meta } from '@storybook/react' import isChromatic from 'chromatic' import { StickerSheet, type StickerSheetStory } from '~storybook/components/StickerSheet' import { EmptyState, type EmptyStateProps } from '../index' export default { title: 'Components/EmptyState', parameters: { chromatic: { disable: false }, controls: { disable: true }, }, } satisfies Meta const IS_CHROMATIC = isChromatic() const EmptyStateWrapper = ({ isAnimated, ...args }: EmptyStateProps): JSX.Element => (
) const StickerSheetTemplate: StickerSheetStory = { render: ({ isReversed }) => { const defaultProps = { headingProps: { variant: 'heading-3', children: 'Empty state', }, bodyText: 'If providing further actions, include a link to an action or use a Default or Primary action.', } satisfies EmptyStateProps const variants = [ 'success', 'warning', 'informative', 'expert-advice', ] satisfies EmptyStateProps['variant'][] return ( <> {variants.map((variant) => ( ))} ) }, } export const StickerSheetDefault: StickerSheetStory = { ...StickerSheetTemplate, name: 'Sticker Sheet (Default)', } export const StickerSheetRTL: StickerSheetStory = { ...StickerSheetTemplate, name: 'Sticker Sheet (RTL)', parameters: { textDirection: 'rtl' }, }