/** * External dependencies */ import { __ } from '@wordpress/i18n'; import { InspectorControls, useBlockProps, InnerBlocks, } from '@wordpress/block-editor'; import { PanelBody, ColorPicker } from '@wordpress/components'; import { type BlockEditProps } from '@wordpress/blocks'; export type Attributes = { color: string; storeOnly: boolean; }; export type EditProps = BlockEditProps< Attributes >; /** * Internal dependencies */ export default function Edit( { attributes, setAttributes }: EditProps ) { const { color, storeOnly } = attributes; const blockProps = { ...useBlockProps() }; if ( storeOnly ) { return (