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