/** * External dependencies */ import { InspectorControls } from '@wordpress/block-editor'; import { PanelBody, ToggleControl } from '@wordpress/components'; import { __ } from '@wordpress/i18n'; import type { BlockAttributes } from '@wordpress/blocks'; export const BlockSettings = ( { attributes, setAttributes, }: { attributes: BlockAttributes; setAttributes: ( attrs: BlockAttributes ) => void; } ) => { const { hasDarkControls } = attributes; return ( setAttributes( { hasDarkControls: ! hasDarkControls, } ) } /> ); };