UNPKG

@wordpress/block-library

Version:
31 lines (25 loc) 574 B
/** * WordPress dependencies */ import { listItem as icon } 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, edit, save, merge( attributes, attributesToMerge ) { return { ...attributes, content: attributes.content + attributesToMerge.content, }; }, }; export const init = () => initBlock( { name, metadata, settings } );