import React from 'react'; import { ComponentStory, ComponentMeta } from '@storybook/react'; import { TextVariant, TextAlign, DISPLAY, FLEX_DIRECTION, AlignItems, JustifyContent, } from '../../../helpers/constants/design-system'; import { AvatarAccount, BUTTON_SIZES, Button, Text } from '..'; import { ModalHeader } from './modal-header'; import README from './README.mdx'; export default { title: 'Components/ComponentLibrary/ModalHeader', component: ModalHeader, parameters: { docs: { page: README, }, }, argTypes: { children: { control: 'text' }, className: { control: 'text' }, onBack: { action: 'onBack' }, onClose: { action: 'onClose' }, }, args: { children: 'ModalHeader', }, } as ComponentMeta; const Template: ComponentStory = (args) => { return ; }; export const DefaultStory = Template.bind({}); DefaultStory.storyName = 'Default'; export const Children: ComponentStory = (args) => ( <> Children as string Custom header using multiple components ); export const OnBack = Template.bind({}); OnBack.args = { children: 'OnBack demo', }; export const OnClose = Template.bind({}); OnClose.args = { children: 'OnClose demo', }; export const StartAccessory = Template.bind({}); StartAccessory.args = { children: 'StartAccessory demo', startAccessory: , }; export const EndAccessory = Template.bind({}); EndAccessory.args = { children: 'EndAccessory demo', endAccessory: , };