import React, { forwardRef } from 'react'; import { useCheckbox } from './CheckboxProvider'; const CheckboxLabel = (StyledCheckboxLabel: any) => forwardRef(({ children, ...props }: any) => { const { isHovered, isChecked, isDisabled, isFocusVisible } = useCheckbox('CheckboxContext'); return ( {children} ); }); export default CheckboxLabel;