25 lines
455 B
TypeScript
25 lines
455 B
TypeScript
/**
|
|
* External dependencies
|
|
*/
|
|
import { filledCart } from '@woocommerce/icons';
|
|
import { Icon } from '@wordpress/icons';
|
|
import { registerBlockType } from '@wordpress/blocks';
|
|
|
|
/**
|
|
* Internal dependencies
|
|
*/
|
|
import { Edit, Save } from './edit';
|
|
|
|
registerBlockType( 'woocommerce/filled-cart-block', {
|
|
icon: {
|
|
src: (
|
|
<Icon
|
|
icon={ filledCart }
|
|
className="wc-block-editor-components-block-icon"
|
|
/>
|
|
),
|
|
},
|
|
edit: Edit,
|
|
save: Save,
|
|
} );
|