/** * External dependencies */ import { useBlockProps, InnerBlocks } from '@wordpress/block-editor'; import { getSetting } from '@woocommerce/settings'; import classnames from 'classnames'; /** * Internal dependencies */ import './editor.scss'; const Edit = ( { attributes, setAttributes, }: { attributes: { heading: string; }; setAttributes: ( attributes: Record< string, unknown > ) => void; } ) => { const blockProps = useBlockProps(); const hasDownloadableProducts = getSetting( 'storeHasDownloadableProducts' ); return (