2021-09-21 15:41:09 +00:00
|
|
|
/**
|
|
|
|
* External dependencies
|
|
|
|
*/
|
2022-02-01 16:54:38 +00:00
|
|
|
import { filledCart } from '@woocommerce/icons';
|
|
|
|
import { Icon } from '@wordpress/icons';
|
2022-08-15 05:45:15 +00:00
|
|
|
import { registerBlockType } from '@wordpress/blocks';
|
2021-09-21 15:41:09 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Internal dependencies
|
|
|
|
*/
|
|
|
|
import { Edit, Save } from './edit';
|
|
|
|
|
2022-08-15 05:45:15 +00:00
|
|
|
registerBlockType( 'woocommerce/filled-cart-block', {
|
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={ filledCart }
|
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,
|
|
|
|
} );
|