2021-09-16 12:16:21 +00:00
|
|
|
/**
|
|
|
|
* External dependencies
|
|
|
|
*/
|
|
|
|
import { Icon, button } from '@wordpress/icons';
|
2022-08-15 05:45:15 +00:00
|
|
|
import { registerBlockType } from '@wordpress/blocks';
|
2022-12-15 10:28:23 +00:00
|
|
|
import type { BlockConfiguration } from '@wordpress/blocks';
|
2021-09-16 12:16:21 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Internal dependencies
|
|
|
|
*/
|
|
|
|
import attributes from './attributes';
|
|
|
|
import { Edit, Save } from './edit';
|
2023-07-04 11:06:48 +00:00
|
|
|
import './style.scss';
|
2021-09-16 12:16:21 +00:00
|
|
|
|
2022-12-15 10:28:23 +00:00
|
|
|
const blockConfig: BlockConfiguration = {
|
2021-09-16 12:16:21 +00:00
|
|
|
icon: {
|
2021-12-10 14:32:44 +00:00
|
|
|
src: (
|
|
|
|
<Icon
|
|
|
|
icon={ button }
|
|
|
|
className="wc-block-editor-components-block-icon"
|
|
|
|
/>
|
|
|
|
),
|
2021-09-16 12:16:21 +00:00
|
|
|
},
|
|
|
|
attributes,
|
|
|
|
save: Save,
|
2022-12-15 10:28:23 +00:00
|
|
|
edit: Edit,
|
|
|
|
};
|
|
|
|
|
|
|
|
registerBlockType( 'woocommerce/checkout-actions-block', blockConfig );
|