import { HTMLAttributes, ReactNode } from 'react';
import { DropdownMenuProps } from '@radix-ui/react-dropdown-menu';
import { HorizontalDirection } from '../../types';
import { IconName } from '../Icon';
export type ButtonType = 'primary' | 'secondary';
type MenuItem = {
icon?: IconName;
iconDir?: HorizontalDirection;
label: ReactNode;
type?: 'item';
items?: never;
} & Omit, 'onSelect'>;
type MenuGroup = {
icon?: never;
iconDir?: never;
label?: never;
type: 'group';
items: Array