import { type Meta, type StoryFn, type StoryObj } from '@storybook/react' import { Avatar } from './Avatar' import type { AvatarProps } from './Avatar.types' const MOCK_AVATAR_URL = 'https://cf.channel.io/thumb/200x200/pub-file/1/65fc43ee585607b276f6/tmp-3329819395' const meta: Meta = { component: Avatar, argTypes: { onClick: { action: 'clicked', }, onMouseEnter: { action: 'mouseEnter', }, onMouseLeave: { action: 'mouseLeave', }, }, } export default meta const Template: StoryFn = (args) => export const Primary: StoryObj = { render: Template, args: { avatarUrl: MOCK_AVATAR_URL, name: 'Channel', size: '24', showBorder: false, disabled: false, smoothCorners: true, }, parameters: { design: { type: 'link', url: 'https://www.figma.com/design/aJJF4bU82uR0jAsmWp5wlE/Navigation?node-id=0-1&t=9HAqBVHxkd1tUwxF-1', }, }, } const TemplateWithCustomStatus: StoryFn = (args) => ( ) export const WithCustomStatus: StoryObj = { render: TemplateWithCustomStatus, args: { avatarUrl: MOCK_AVATAR_URL, name: 'Channel', size: '48', showBorder: false, disabled: false, }, parameters: { design: { type: 'link', url: 'https://www.figma.com/design/aJJF4bU82uR0jAsmWp5wlE/Navigation?node-id=0-1&t=9HAqBVHxkd1tUwxF-1', }, }, }