import React from 'react';
import { MenuItemProps as MUMenuItemProps } from '@material-ui/core/MenuItem';
import { MenuProps as MUMenuProps } from '@material-ui/core/Menu';

export type MenuItemProps = {
  icon?: React.ReactElement | null;
  isRenderEmptyIcon?: boolean;
  onClick?: () => void;
  isSelected?: boolean;
  style?: React.CSSProperties;
  title: MUMenuItemProps['children'];
  value?: string | number;
  className?: string;
  isDisabledAutoClose?: boolean;
};

export type MenuItemsProps = {
  data: MenuItemProps[];
};

export type MenuProps = {
  PaperProps?: MUMenuProps['PaperProps'];
  anchor?: React.ReactElement;
  className?: string;
  disabled?: boolean;
  isOpen?: boolean;
  setIsOpen?: (status: boolean) => void;
  style?: React.CSSProperties;
};
