import { useState } from 'react' import { ArrowRightIcon, CalendarIcon, CancelIcon, CheckIcon, ChevronDownIcon, ChevronRightIcon, EditIcon, HeartFilledIcon, LightningIcon, OpenInNewIcon, PeopleIcon, PlayIcon, PlusIcon, TagIcon, TrashIcon, TriangleDownIcon, VideocamIcon, } from '@channel.io/bezier-icons' import { type Meta, type StoryObj } from '@storybook/react' import { Avatar } from '~/src/components/Avatar' import { Box } from '~/src/components/Box' import { ButtonGroup } from '~/src/components/ButtonGroup' import { Center } from '~/src/components/Center' import { LegacyHStack, LegacyStackItem, LegacyVStack, } from '~/src/components/LegacyStack' import { ListItem } from '~/src/components/ListItem' import { Overlay } from '~/src/components/Overlay' import { SectionLabel } from '~/src/components/SectionLabel' import { Text } from '~/src/components/Text' import { Button } from './Button' import mdx from './Button.mdx' import type { ButtonProps, ButtonSize, ButtonStyleVariant, } from './Button.types' const meta: Meta = { component: Button, parameters: { docs: { page: mdx, }, }, argTypes: { onClick: { action: 'onClick' }, }, tags: ['!autodocs'], } export default meta export const Primary: StoryObj = { args: { text: 'Invite', disabled: false, active: false, loading: false, leftContent: PlusIcon, rightContent: ArrowRightIcon, size: 'm', styleVariant: 'primary', colorVariant: 'blue', }, } export const WithCustomComponent: StoryObj = { args: { text: 'Set Manager', leftContent: ( ), size: 'm', styleVariant: 'primary', colorVariant: 'blue', }, } export const OverviewCTA: StoryObj<{}> = { render: () => (