2022-10-04 12:02:28 +00:00
|
|
|
/**
|
|
|
|
* External dependencies
|
|
|
|
*/
|
|
|
|
import { Icon, shipping } from '@wordpress/icons';
|
2022-12-21 15:38:40 +00:00
|
|
|
import { registerBlockType } from '@wordpress/blocks';
|
2022-10-04 12:02:28 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Internal dependencies
|
|
|
|
*/
|
|
|
|
import { Edit, Save } from './edit';
|
|
|
|
import attributes from './attributes';
|
2023-07-04 11:06:48 +00:00
|
|
|
import './style.scss';
|
2022-10-04 12:02:28 +00:00
|
|
|
|
2022-12-21 15:38:40 +00:00
|
|
|
registerBlockType( 'woocommerce/checkout-shipping-method-block', {
|
2022-10-04 12:02:28 +00:00
|
|
|
icon: {
|
|
|
|
src: (
|
|
|
|
<Icon
|
|
|
|
icon={ shipping }
|
|
|
|
className="wc-block-editor-components-block-icon"
|
|
|
|
/>
|
|
|
|
),
|
|
|
|
},
|
|
|
|
attributes,
|
|
|
|
edit: Edit,
|
|
|
|
save: Save,
|
|
|
|
} );
|