/** * External dependencies */ import { __ } from '@wordpress/i18n'; import { useBlockProps, InspectorControls } from '@wordpress/block-editor'; import { Disabled, PanelBody, ToggleControl } from '@wordpress/components'; import { getSetting } from '@woocommerce/settings'; /** * Internal dependencies */ import Block from './block'; export const Edit = ( { attributes, setAttributes, }: { attributes: { showRateAfterTaxName: boolean; lock: { move: boolean; remove: boolean; }; }; setAttributes: ( attributes: Record< string, unknown > ) => void; } ): JSX.Element => { const blockProps = useBlockProps(); const taxesEnabled = getSetting( 'taxesEnabled' ) as boolean; const displayItemizedTaxes = getSetting( 'displayItemizedTaxes', false ) as boolean; const displayCartPricesIncludingTax = getSetting( 'displayCartPricesIncludingTax', false ) as boolean; return (