import { Menu, MenuButton, MenuItem, MenuItems, MenuPopover, MenuLink, MenuListProps, } from '@reach/menu-button'; import { positionDefault, positionRight } from '@reach/popover'; import classNames from 'clsx'; import React from 'react'; import './menu.css'; interface IMenuList extends Omit { /** Position of the dropdown menu. */ position?: 'left' | 'right' className?: string } /** Renders children as a dropdown menu. */ const MenuList: React.FC = (props) => { const { position, className, ...filteredProps } = props; return ( event.nativeEvent.stopImmediatePropagation()} className={ classNames(className, 'dark:bg-primary-900 shadow-menu rounded-lg bg-white py-1') } {...filteredProps} /> ); }; /** Divides menu items. */ const MenuDivider = () =>
; export { Menu, MenuButton, MenuDivider, MenuItems, MenuItem, MenuList, MenuLink };