/** * External dependencies */ import { withInstanceId } from '@woocommerce/base-hocs/with-instance-id'; import classNames from 'classnames'; /** * Internal dependencies */ import './style.scss'; type CheckboxControlProps = { className?: string; label?: string; id?: string; instanceId: string; onChange: ( value: boolean ) => void; children: React.ReactChildren; }; /** * Component used to show a checkbox control with styles. */ const CheckboxControl = ( { className, label, id, instanceId, onChange, children, ...rest }: CheckboxControlProps ): JSX.Element => { const checkboxId = id || `checkbox-control-${ instanceId }`; return ( ); }; export default withInstanceId( CheckboxControl );