/**
* External dependencies
*/
import type { ReactElement } from 'react';
import {
useBlockProps,
InnerBlocks,
BlockControls,
} from '@wordpress/block-editor';
import { __ } from '@wordpress/i18n';
import { Icon, filledCart, removeCart } from '@woocommerce/icons';
import { EditorProvider } from '@woocommerce/base-context';
import type { TemplateArray } from '@wordpress/blocks';
/**
* Internal dependencies
*/
import { useViewSwitcher, useForcedLayout } from '../shared';
// Array of allowed block names.
const ALLOWED_BLOCKS = [
'woocommerce/filled-mini-cart-contents-block',
'woocommerce/empty-mini-cart-contents-block',
];
const views = [
{
view: 'woocommerce/filled-mini-cart-contents-block',
label: __( 'Filled Mini Cart', 'woo-gutenberg-products-block' ),
icon: