27 lines
516 B
TypeScript
27 lines
516 B
TypeScript
/**
|
|
* External dependencies
|
|
*/
|
|
import { Icon, card } from '@woocommerce/icons';
|
|
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: {
|
|
src: (
|
|
<Icon
|
|
srcElement={ card }
|
|
className="wc-block-editor-components-block-icon"
|
|
/>
|
|
),
|
|
},
|
|
attributes,
|
|
edit: Edit,
|
|
save: Save,
|
|
} );
|