'use client'; import React, {FC} from 'react'; import {CheckboxStyle as S} from './styles/checkbox.style'; import {ICheckbox} from './checkbox.type'; import {checkboxSizeMapper} from './mappers/checkbox-size-mapper'; import {CheckboxIconComponent} from './parts/icon/checkbox-icon.component'; export const CheckboxComponent: FC = ({size, ...restProps}) => { const { checked, disabled, indeterminate, title, hint, color = 'primary', } = restProps; const classes = { isChecked: checked ? 'checked' : '', isDisabled: disabled ? 'disabled' : '', }; return ( {title || hint ? ( {title && {title}} {hint && {hint}} ) : null} ); };