import { action } from 'storybook/actions' import MenuList from '.' import MenuItem from '../MenuItem' import MenuItemGroup from '../MenuItemGroup' import { Meta, StoryObj } from '@storybook/react-vite' export default { title: 'react/internals/MenuList', component: MenuList, } as Meta function makeList(n: number, offset = 0) { return [...(Array(n) as undefined[])].map((_, i) => { const v = i + offset return ( Menu {v} ) }) } export const Basic: StoryObj = { render: () => { return ( <> {makeList(10)} ) }, } export const Disabled: StoryObj = { render: () => { return ( <> MenuItem Disabled MenuItem ) }, } export const Group: StoryObj = { render: () => { return ( {makeList(5)} {makeList(5, 5)} ) }, }