import { CheckboxProps as MUICheckboxProps } from '@material-ui/core';
import React, { ChangeEvent } from 'react';
import { ThemeObject } from '../Theme';

export type CheckedIcons = 'checkSquare' | 'indeterminate';
export interface CheckboxProps extends Omit<MUICheckboxProps, 'color'> {
  onChange: (event: ChangeEvent<HTMLInputElement>, checked: boolean) => void;
  indeterminate?: boolean;
  color?: keyof ThemeObject['pallet'];
  icon?: React.ReactElement;
  iconColor?: keyof ThemeObject['pallet'];
  className?: string;
  disabled?: boolean;
  typeIcon?: CheckedIcons;
}
