/** * External dependencies */ import { useBlockProps, InnerBlocks } from '@wordpress/block-editor'; const Edit = ( { attributes, setAttributes, }: { attributes: { heading: string; }; setAttributes: ( attributes: Record< string, unknown > ) => void; } ) => { const blockProps = useBlockProps(); return (
setAttributes( { heading: value } ), }, ], [ 'woocommerce/order-confirmation-totals', { lock: { remove: true, }, }, ], ] } />
); }; export default Edit;