checkboxFancyContent.tsx 418 B

1234567891011121314151617181920
  1. import {IconCheckmark, IconSubtract} from 'app/icons';
  2. type Props = {
  3. isChecked?: boolean;
  4. isIndeterminate?: boolean;
  5. };
  6. const CheckboxFancyContent = ({isChecked, isIndeterminate}: Props) => {
  7. if (isIndeterminate) {
  8. return <IconSubtract size="70%" color="white" />;
  9. }
  10. if (isChecked) {
  11. return <IconCheckmark size="70%" color="white" />;
  12. }
  13. return null;
  14. };
  15. export default CheckboxFancyContent;