import { ITranslation } from "../interface";
export interface Item {
  value: string | number;
  label: string;
  disabled?: boolean;
}

export interface SelectValue {
  value?: string | Array<Item>;
}

export interface SelectProps extends SelectValue {
  onChange?: Function;
  onDelete?: Function;
  onSearch?: Function;
  onClick?: (e) => void;
  placeHolder?: string;
  size?: "small" | "normal" | "large";
  isMultiSelect?: boolean;
  disabled?: boolean;
  isSearch?: boolean;
  readOnly?: boolean;
  isActive?: boolean;
  showDelete?: boolean;
  error?: boolean;
  translation?: ITranslation;
  inputRef?: (element: HTMLInputElement) => void;
  extraCls?: string;
  suffix?: React.ReactNode;
  exitSearch?: boolean;
}
