import React from 'react'
import { type Meta, type StoryObj } from '@storybook/react'
import { Button } from '~components/ButtonV1'
import { Icon } from '~components/Icon'
import { EmptyState } from '../index'
const meta = {
title: 'Components/EmptyState',
component: EmptyState,
argTypes: {
children: {
table: { type: { summary: 'React.ReactNode' } },
control: { type: 'radio' },
options: ['Default (no children)', 'Button (chevron right)'],
mapping: {
'Default (no children)': undefined,
'Button (chevron right)': (
}
iconPosition="end"
/>
),
},
},
},
args: {
headingProps: {
variant: 'heading-3',
children: 'Empty state title',
},
bodyText:
'If providing further actions, include a link to an action or use a Default or Primary action.',
},
} satisfies Meta
export default meta
type Story = StoryObj
export const Playground: Story = {
parameters: {
docs: {
canvas: {
sourceState: 'shown',
},
},
},
}