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