import React from 'react'; import type { Meta, StoryObj } from '@storybook/react'; import SettingsItem from './SettingsItem'; import Badge from '../Badge/Badge'; import Avatar from '../Avatar/Avatar'; import { CloseSvg, GroupChatSvg, NotificationsSvg, SearchSvg, } from '../../icons'; const meta: Meta = { title: '@quickblox-react-ui-kit/Presentation/ui-components/SettingsItem', component: SettingsItem, tags: ['autodocs'], parameters: { layout: 'centered', }, argTypes: { title: { table: { defaultValue: { summary: '', }, type: { summary: 'string' }, }, description: 'Name Setting item ', }, className: { table: { defaultValue: { summary: '', }, type: { summary: 'string' }, }, description: 'Additional classes', }, icon: { control: false, table: { defaultValue: { summary: 'svg | ReactElement', }, type: { summary: 'svg | ReactElement' }, }, description: 'Format plug svg or React element ', }, rightSection: { control: false, table: { defaultValue: { summary: 'ReactElement | ReactElement[]', }, type: { summary: 'ReactElement | ReactElement[]' }, }, description: 'Elements for the right section', }, onClick: { control: false, table: { defaultValue: { summary: 'VoidFunction', }, type: { summary: 'VoidFunction' }, }, description: 'function onClick for icon', }, children: { control: false, table: { defaultValue: { summary: 'ReactElement | ReactElement[]', }, type: { summary: 'ReactElement | ReactElement[]' }, }, description: 'Elements that will be contained in the additional section', }, }, }; export default meta; type StoryDefault = StoryObj; export const SettingsItemDefault: StoryDefault = { name: 'SettingsItem Default', args: { title: 'Search in dialog', icon: ( ), }, }; export const SettingsItemNotification: StoryDefault = { name: 'SettingsItem Notification', args: { title: 'Notification', icon: ( ), // rightSection: ( // // ), }, }; export const SettingsItemMembers: StoryDefault = { name: 'SettingsItem Members', args: { title: 'Notification', icon: ( ), rightSection: , children: (
  • Name
  • Name
  • Name
  • Name
), }, };