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