woocommerce/plugins/woocommerce-blocks/assets/js/blocks/checkout/inner-blocks/checkout-actions-block/index.tsx

30 lines
605 B
TypeScript

/**
* External dependencies
*/
import { Icon, button } from '@wordpress/icons';
import { registerBlockType } from '@wordpress/blocks';
import type { BlockConfiguration } from '@wordpress/blocks';
/**
* Internal dependencies
*/
import attributes from './attributes';
import { Edit, Save } from './edit';
import './style.scss';
const blockConfig: BlockConfiguration = {
icon: {
src: (
<Icon
icon={ button }
className="wc-block-editor-components-block-icon"
/>
),
},
attributes,
save: Save,
edit: Edit,
};
registerBlockType( 'woocommerce/checkout-actions-block', blockConfig );