24 lines
471 B
TypeScript
24 lines
471 B
TypeScript
/**
|
|
* External dependencies
|
|
*/
|
|
import { Icon, asterisk } from '@woocommerce/icons';
|
|
import { registerFeaturePluginBlockType } from '@woocommerce/block-settings';
|
|
/**
|
|
* Internal dependencies
|
|
*/
|
|
import { Edit, Save } from './edit';
|
|
import metadata from './block.json';
|
|
|
|
registerFeaturePluginBlockType( metadata, {
|
|
icon: {
|
|
src: (
|
|
<Icon
|
|
srcElement={ asterisk }
|
|
className="wc-block-editor-components-block-icon"
|
|
/>
|
|
),
|
|
},
|
|
edit: Edit,
|
|
save: Save,
|
|
} );
|