2021-09-16 12:16:21 +00:00
|
|
|
/**
|
|
|
|
* External dependencies
|
|
|
|
*/
|
2022-02-01 16:54:38 +00:00
|
|
|
import { Icon, shipping } from '@wordpress/icons';
|
2021-09-16 12:16:21 +00:00
|
|
|
import { registerFeaturePluginBlockType } from '@woocommerce/block-settings';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Internal dependencies
|
|
|
|
*/
|
|
|
|
import { Edit, Save } from './edit';
|
|
|
|
import attributes from './attributes';
|
|
|
|
import metadata from './block.json';
|
|
|
|
|
|
|
|
registerFeaturePluginBlockType( metadata, {
|
|
|
|
icon: {
|
2021-12-10 14:32:44 +00:00
|
|
|
src: (
|
|
|
|
<Icon
|
2022-02-01 16:54:38 +00:00
|
|
|
icon={ shipping }
|
2021-12-10 14:32:44 +00:00
|
|
|
className="wc-block-editor-components-block-icon"
|
|
|
|
/>
|
|
|
|
),
|
2021-09-16 12:16:21 +00:00
|
|
|
},
|
|
|
|
attributes,
|
|
|
|
edit: Edit,
|
|
|
|
save: Save,
|
|
|
|
} );
|