import { AppleIcon } from '@channel.io/bezier-icons' import { type Meta, type StoryFn, type StoryObj } from '@storybook/react' import { Box } from '~/src/components/Box' import { Badge } from './Badge' import { type BadgeProps } from './Badge.types' const meta: Meta = { component: Badge, } export default meta const Template: StoryFn = ({ children, ...badgeProps }) => ( {children} ) const Truncated: StoryFn = ({ children, ...badgeProps }) => ( {children} ) export const Primary: StoryObj = { render: Template, args: { children: 'Design', size: 'm', icon: AppleIcon, variant: 'default', }, argTypes: { truncated: { table: { disable: true, }, }, }, } export const Secondary: StoryObj = { render: Truncated, args: { children: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', size: 'm', icon: AppleIcon, variant: 'default', truncated: true, }, name: 'Truncated', }