2021-10-19 11:23:33 +00:00
|
|
|
/**
|
|
|
|
* External dependencies
|
|
|
|
*/
|
2021-10-25 14:46:34 +00:00
|
|
|
import { Icon, column } from '@wordpress/icons';
|
2022-08-15 05:45:15 +00:00
|
|
|
import { registerBlockType } from '@wordpress/blocks';
|
2021-10-19 11:23:33 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Internal dependencies
|
|
|
|
*/
|
|
|
|
import { Edit, Save } from './edit';
|
2023-07-04 11:06:48 +00:00
|
|
|
import './style.scss';
|
2021-10-19 11:23:33 +00:00
|
|
|
|
2022-08-15 05:45:15 +00:00
|
|
|
registerBlockType( 'woocommerce/cart-totals-block', {
|
2021-10-19 11:23:33 +00:00
|
|
|
icon: {
|
2021-12-10 14:32:44 +00:00
|
|
|
src: (
|
|
|
|
<Icon
|
|
|
|
icon={ column }
|
|
|
|
className="wc-block-editor-components-block-icon"
|
|
|
|
/>
|
|
|
|
),
|
2021-10-19 11:23:33 +00:00
|
|
|
},
|
|
|
|
edit: Edit,
|
|
|
|
save: Save,
|
|
|
|
} );
|