import { ChipProps as MUChipProps } from '@material-ui/core/Chip';
import { MenuItemProps } from '../Menu';
import { ThemeObject } from '../Theme';

export interface ChipProps extends Omit<MUChipProps, 'color'> {
  className?: string;
  color?: keyof ThemeObject['pallet'];
  customColor?: string;
  active?: boolean;
}

export interface ChipMenuProps<ItemType = MenuItemProps> {
  chipProps?: Omit<ChipProps, 'label | icon | deleteIcon | onDelete'>;
  label: ChipProps['label'];
  items: ItemType[];
  onSelect?: (value: MenuItemProps['value']) => void;
  dataSettings?: {
    titleDesignation: keyof ItemType;
    valueDesignation: keyof ItemType;
  };
}
