import React from 'react'; import type { Meta, StoryObj } from '@storybook/react'; import MessageSeparator from './MessageSeparator'; const meta = { title: '@quickblox-react-ui-kit/Presentation/ui-components/MessageSeparator', component: MessageSeparator, tags: ['autodocs'], parameters: { layout: 'centered', }, args: { text: '', type: 'date' }, argTypes: { text: { table: { defaultValue: { summary: '', }, }, description: 'Text content', }, type: { description: 'type content', type: 'function', options: ['none', 'date', 'system'], control: { type: 'select' }, table: { defaultValue: { summary: "'date'", }, type: { summary: 'string' }, }, }, }, } satisfies Meta; export default meta; type Story = StoryObj; export const MessageSeparatorDate: Story = { name: 'MessageSeparator Date', args: { text: '2024-01-26T00:00:00.000Z', type: 'date', }, }; export const MessageSeparatorSystem: Story = { name: 'MessageSeparator System', args: { text: 'User created chat', type: 'system', }, }; /* const meta: Meta = { title: 'Header', component: Header, tags: ['autodocs'], parameters: { viewport: { viewports: INITIAL_VIEWPORTS, }, }, argTypes: { title: { control: { type: 'text' }, description: 'Dialog title', }, avatar: { description: 'Avatar or Icon', type: 'function', options: ['None', 'User', 'Group', 'Public', 'Photo'], control: 'select', mapping: { None: undefined, User: } />, Group: } />, Public: } />, Photo: ( ), }, }, badge: { description: 'Badge or dialog status', }, children: { type: 'function', options: ['None', 'SingleIcon', 'MultiplyIcons', 'Close'], control: 'select', mapping: { None: undefined, SingleIcon: , MultiplyIcons: [, ], Close: , }, table: { type: { summary: 'svg' }, }, description: 'Additional content: list of icons', }, onGoBack: { action: 'clicked back button', }, classNames: { table: { type: { summary: 'string' }, }, description: 'Additional classes', }, }, }; export default meta; export const HeaderDefault: StoryObj = { args: { title: 'Default Dialog desktop', }, parameters: { layout: 'centered' }, }; export const HeaderWithAvatar: StoryObj = { args: { title: 'Default Dialog desktop', avatar: } />, }, parameters: { layout: 'centered' }, }; export const HeaderWithAvatarAndBack: StoryObj = { args: { title: 'Default Dialog mobile', avatar: } />, onGoBack: () => { window.alert('onGoBack'); }, }, parameters: { viewport: { defaultViewport: 'iphonese2' } }, }; export const HeaderWithOneChildrenIcon: StoryObj = { args: { title: 'Default Dialog desktop', avatar: } />, children: , onGoBack: undefined, }, parameters: { layout: 'centered' }, }; export const HeaderWithTwoChildrenIcon: StoryObj = { args: { title: 'Default Dialog desktop', avatar: } />, children: [, ], onGoBack: undefined, }, parameters: { layout: 'centered' }, }; */