@wordpress/block-library
Version:
Block library for the WordPress editor.
28 lines (23 loc) • 523 B
JavaScript
/**
* WordPress dependencies
*/
import { __ } from '@wordpress/i18n';
import { queryPaginationPrevious as icon } from '@wordpress/icons';
/**
* Internal dependencies
*/
import initBlock from '../utils/init-block';
import metadata from './block.json';
import edit from './edit';
const { name } = metadata;
export { metadata, name };
export const settings = {
icon,
edit,
example: {
attributes: {
label: __( 'Older Comments' ),
},
},
};
export const init = () => initBlock( { name, metadata, settings } );