UNPKG

@wordpress/block-library

Version:
43 lines (37 loc) 795 B
/** * WordPress dependencies */ import { __ } from '@wordpress/i18n'; import { quote as icon } from '@wordpress/icons'; /** * Internal dependencies */ import initBlock from '../utils/init-block'; import deprecated from './deprecated'; import edit from './edit'; import metadata from './block.json'; import save from './save'; import transforms from './transforms'; const { name } = metadata; export { metadata, name }; export const settings = { icon, example: { attributes: { citation: __( 'Julio Cortázar' ), }, innerBlocks: [ { name: 'core/paragraph', attributes: { content: __( 'In quoting others, we cite ourselves.' ), }, }, ], }, transforms, edit, save, deprecated, }; export const init = () => initBlock( { name, metadata, settings } );