/** * External dependencies */ import { InspectorControls, useBlockProps } from '@wordpress/block-editor'; import type { ReactElement } from 'react'; import { formatPrice } from '@woocommerce/price-format'; import { CartCheckoutCompatibilityNotice } from '@woocommerce/editor-components/compatibility-notices'; import { PanelBody, ExternalLink, SelectControl } from '@wordpress/components'; import { getSetting } from '@woocommerce/settings'; import { __ } from '@wordpress/i18n'; import Noninteractive from '@woocommerce/base-components/noninteractive'; /** * Internal dependencies */ import QuantityBadge from './quantity-badge'; interface Attributes { addToCartBehaviour: string; } interface Props { attributes: Attributes; setAttributes: ( attributes: Record< string, unknown > ) => void; } const MiniCartBlock = ( { attributes, setAttributes, }: Props ): ReactElement => { const { addToCartBehaviour } = attributes; const blockProps = useBlockProps( { className: `wc-block-mini-cart`, } ); const templatePartEditUri = getSetting( 'templatePartEditUri', '' ) as string; const productCount = 0; const productTotal = 0; return (
{ __( 'Edit the appearance of your empty and filled mini cart contents.', 'woo-gutenberg-products-block' ) }