import React from 'react'; import {Check, COLOR, SIZE} from '@propellerads/icon'; import {InputCheckboxProps} from './types'; import { StyledCheckbox, StyledDescription, StyledIcon, StyledLabel, } from './style'; const InputCheckbox = ({ hasError = false, isChecked = false, isDisabled = false, checkboxRef = null, onChange, elementId, label = '', description = '', }: InputCheckboxProps) => { function handleInputChange() { onChange(!isChecked); } return ( {label} {description && ({description})} ); }; export default InputCheckbox;