import type { Meta, Story } from '@storybook/react'; import { ASSETS_URL } from '../../../../consts/common'; import { Member } from '../../../member'; import type { MemberProps } from '../../../member'; export default { component: Member, title: 'Data Grid/In Cells/User Name' } as Meta; const Template: Story = args => ; export const Primary = Template.bind({}); Primary.args = { fullName: 'Full name', description: 'description@email.com', avatarProps: { initials: 'JS', backgroundColor: '#6BB9D7' }, avatarTooltipText: 'avatar Tooltip Text' }; export const WithLabelAndIcons = Template.bind({}); WithLabelAndIcons.args = { ...Primary.args, label:
Label component
, icons: [ { src: `${ASSETS_URL}/icons/icon_mail.svg`, clickHandler: () => alert('Send mail') }, { src: `${ASSETS_URL}/icons/icon_phone.svg`, clickHandler: () => alert('Phone function') } ] };