import { Fragment } from 'react' import type { Meta } from '@storybook/react' import { useTranslation } from 'react-i18next' import { Dropdown, DropdownHeader, DropdownItem, DropdownMenu, DropdownToggle, } from '@/features/ui/components/bootstrap-5/dropdown-menu' import Button from '@/features/ui/components/bootstrap-5/button' import { ButtonGroup } from 'react-bootstrap-5' type Args = React.ComponentProps export const Sizes = (args: Args) => { const { t } = useTranslation() const sizes = { Large: 'lg', Regular: undefined, Small: 'sm', } as const const variants = ['primary', 'secondary', 'danger'] as const return Object.entries(sizes).map(([label, size]) => (

{label}

{variants.map(variant => ( Header Action 1 Action 2 Action 3 ))}
)) } const meta: Meta = { title: 'Shared/Components/Bootstrap 5/SplitButton', component: Dropdown, args: { align: { sm: 'start' }, }, parameters: { bootstrap5: true, }, } export default meta