import React from 'react'; import type { Meta, StoryObj } from '@storybook/react'; import Placeholder from './Placeholder'; import { ErrorSvg, PublicChannelSvg, ChatSvg, GroupChatSvg, MutedSvg, BannedSvg, SearchSvg, } from '../../icons'; const meta: Meta = { title: '@quickblox-react-ui-kit/Presentation/ui-components/Placeholder', component: Placeholder, tags: ['autodocs'], parameters: { layout: 'centered', }, args: { text: ['Text for placeholder'], className: '', onRetry: undefined, icon: undefined, }, argTypes: { icon: { options: [ 'Public', 'Message', 'Members', 'Muted', 'Banned', 'Search', 'Error', ], control: 'select', mapping: { Public: , Message: , Members: , Muted: , Banned: , Search: , Error: , }, table: { type: { summary: 'svg' }, }, description: 'Format plug svg', }, onRetry: { table: { type: { summary: 'function' }, }, description: 'Action on re-try', }, text: { defaultValue: { summary: [''], }, table: { type: { summary: 'array' }, }, description: 'Placeholder text', }, className: { table: { type: { summary: 'string' }, }, description: 'Additional classes', }, }, }; export default meta; type StoryDefault = StoryObj; export const PlaceholderDefault: StoryDefault = { args: { icon: , }, }; export const PlaceholderError: StoryDefault = { args: { icon: , onRetry: () => undefined, }, };