woocommerce/plugins/woocommerce-blocks/assets/js/blocks/cart/inner-blocks/cart-totals-block/index.tsx

24 lines
410 B
TypeScript
Raw Normal View History

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