@wordpress/block-library
Version:
Block library for the WordPress editor.
34 lines (25 loc) • 552 B
JavaScript
/**
* WordPress dependencies
*/
import { _x } from '@wordpress/i18n';
import { home } from '@wordpress/icons';
/**
* Internal dependencies
*/
import initBlock from '../utils/init-block';
import metadata from './block.json';
import edit from './edit';
import save from './save';
const { name } = metadata;
export { metadata, name };
export const settings = {
icon: home,
edit,
save,
example: {
attributes: {
label: _x( 'Home Link', 'block example' ),
},
},
};
export const init = () => initBlock( { name, metadata, settings } );