24 lines
484 B
TypeScript
24 lines
484 B
TypeScript
/**
|
|
* External dependencies
|
|
*/
|
|
import { BlockConfiguration } from '@wordpress/blocks';
|
|
import { registerExperimentalBlockType } from '@woocommerce/block-settings';
|
|
|
|
/**
|
|
* Internal dependencies
|
|
*/
|
|
import metadata from './block.json';
|
|
import edit from './edit';
|
|
import save from './save';
|
|
import icon from './icon';
|
|
import './style.scss';
|
|
|
|
const blockConfig: BlockConfiguration = {
|
|
...metadata,
|
|
icon,
|
|
edit,
|
|
save,
|
|
};
|
|
|
|
registerExperimentalBlockType( metadata.name, blockConfig );
|