@wordpress/block-library
Version:
Block library for the WordPress editor.
16 lines (14 loc) • 328 B
JavaScript
/**
* WordPress dependencies
*/
import { ToggleControl } from '@wordpress/components';
export default function EmptyTermsControl( { value, onChange, ...props } ) {
return (
<ToggleControl
__nextHasNoMarginBottom
checked={ ! value }
onChange={ ( showEmpty ) => onChange( ! showEmpty ) }
{ ...props }
/>
);
}