woocommerce/plugins/woocommerce-blocks/assets/js/blocks/cart/inner-blocks/empty-cart-block/index.tsx

25 lines
490 B
TypeScript

/**
* External dependencies
*/
import { removeCart } from '@woocommerce/icons';
import { Icon } from '@wordpress/icons';
import { registerFeaturePluginBlockType } from '@woocommerce/block-settings';
/**
* Internal dependencies
*/
import { Edit, Save } from './edit';
registerFeaturePluginBlockType( 'woocommerce/empty-cart-block', {
icon: {
src: (
<Icon
icon={ removeCart }
className="wc-block-editor-components-block-icon"
/>
),
},
edit: Edit,
save: Save,
} );