import { CheckboxControl } from '@wordpress/components';

const CheckboxField = ( { field, value, onChange } ) => (
	<CheckboxControl
		label={ field.label }
		checked={ Boolean( value ) }
		onChange={ onChange }
		help={ field.help }
	/>
);

export default CheckboxField;
