import React, {FC} from 'react';

import Check from 'herein-icon/check';
import Minus from 'herein-icon/minus';
import {ICheckboxIcon} from './checkbox-icon.type';

export const CheckboxIconComponent: FC<ICheckboxIcon> = ({
    checked,
    indeterminate,
}) => {
    if (checked && indeterminate) return <Minus />;
    if (checked) return <Check />;
    return <></>;
};
