import { Menu, type MenuButtonProps, Transition } from '@headlessui/react' import clsx from 'clsx' import { Fragment, type HTMLProps, type ReactNode } from 'react' type Properties = { readonly children: ReactNode; readonly button: ReactNode; // eslint-disable-next-line unicorn/no-keyword-prefix readonly className?: string; readonly width?: string; } function Dropdown(properties: Properties) { return (
{properties.children}
) } function Button(properties: MenuButtonProps<'button'>) { return ( {properties.children} ) } type ItemProperties = HTMLProps & { variant?: 'static' | 'normal'; } function Item(properties: ItemProperties) { return ( {({ active }) => (
{properties.children}
)}
) } export default Object.assign(Dropdown, { Item })