import { FaceSmileIcon } from '@channel.io/bezier-icons' import { type Meta, type StoryFn, type StoryObj } from '@storybook/react' import { OutlineItem } from './OutlineItem' import { type OutlineItemProps } from './OutlineItem.types' const meta: Meta = { component: OutlineItem, } const Template: StoryFn = (args) => (
) export const Primary: StoryObj = { render: Template, args: { open: false, disableChevron: false, content: 'Icon', leftContent: FaceSmileIcon, }, } export const WithOnClick: StoryObj = { render: Template, args: { open: false, disableChevron: false, content: 'Clickable Item', leftContent: FaceSmileIcon, onClick: () => alert('clicked'), }, } export const WithRightContent: StoryObj = { render: Template, args: { open: false, disableChevron: false, content: 'With Right Content', leftContent: FaceSmileIcon, rightContent: ⌘K, }, } export const WithOnClickAndRightContent: StoryObj = { render: Template, args: { open: false, disableChevron: false, content: 'Clickable with Right Content', leftContent: FaceSmileIcon, rightContent: ⌘K, onClick: () => alert('clicked'), }, } export const Active: StoryObj = { render: Template, args: { open: false, disableChevron: false, content: 'Active Item', leftContent: FaceSmileIcon, active: true, onClick: () => alert('clicked'), }, } export default meta