import { action } from '@storybook/addon-actions'; import type { ComponentMeta, ComponentStory } from '@storybook/react'; import React from 'react'; import { useAutoSequence } from '../../stories/hooks/useAutoSequence'; import BurgerMenuButton from './BurgerMenuButton'; export default { title: 'Components/Burger Menu/BurgerMenuButton', component: BurgerMenuButton, parameters: { layout: 'centered', controls: { hideNoControlsWarning: true }, actions: { argTypesRegex: '^on.*' }, }, } as ComponentMeta; export const Example: ComponentStory = () => { const { open, badge } = useAutoSequence([ {}, { open: true }, {}, { badge: 99 }, { open: true, badge: 99 }, { badge: 99 }, { open: true }, ] as const); return ; }; const Template: ComponentStory = (args) => ; export const Clean = Template.bind({}); export const Open = Template.bind({}); Open.args = { open: true, }; export const WithBadge = Template.bind({}); WithBadge.args = { badge: 99, };