2021-09-21 15:41:09 +00:00
|
|
|
/**
|
|
|
|
* External dependencies
|
|
|
|
*/
|
2022-02-01 16:54:38 +00:00
|
|
|
import { removeCart } from '@woocommerce/icons';
|
|
|
|
import { Icon } from '@wordpress/icons';
|
2021-10-25 14:46:34 +00:00
|
|
|
import { registerFeaturePluginBlockType } from '@woocommerce/block-settings';
|
2021-09-21 15:41:09 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Internal dependencies
|
|
|
|
*/
|
|
|
|
import { Edit, Save } from './edit';
|
|
|
|
import metadata from './block.json';
|
|
|
|
|
2021-10-25 14:46:34 +00:00
|
|
|
registerFeaturePluginBlockType( metadata, {
|
2021-09-21 15:41:09 +00:00
|
|
|
icon: {
|
2021-12-10 14:32:44 +00:00
|
|
|
src: (
|
|
|
|
<Icon
|
2022-02-01 16:54:38 +00:00
|
|
|
icon={ removeCart }
|
2021-12-10 14:32:44 +00:00
|
|
|
className="wc-block-editor-components-block-icon"
|
|
|
|
/>
|
|
|
|
),
|
2021-09-21 15:41:09 +00:00
|
|
|
},
|
|
|
|
edit: Edit,
|
|
|
|
save: Save,
|
|
|
|
} );
|