@wordpress/block-library
Version:
Block library for the WordPress editor.
36 lines (34 loc) • 936 B
JavaScript
import { createElement } from "@wordpress/element";
/**
* WordPress dependencies
*/
import { __ } from '@wordpress/i18n';
import { G, Path, SVG } from '@wordpress/components';
/**
* Internal dependencies
*/
import edit from './edit';
export var name = 'core/legacy-widget';
export var settings = {
title: __('Legacy Widget (Experimental)'),
description: __('Display a legacy widget.'),
icon: createElement(SVG, {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg"
}, createElement(Path, {
fill: "none",
d: "M0 0h24v24H0V0z"
}), createElement(G, null, createElement(Path, {
d: "M7 11h2v2H7v-2zm14-5v14l-2 2H5l-2-2V6l2-2h1V2h2v2h8V2h2v2h1l2 2zM5 8h14V6H5v2zm14 12V10H5v10h14zm-4-7h2v-2h-2v2zm-4 0h2v-2h-2v2z"
}))),
category: 'widgets',
supports: {
html: false
},
edit: edit,
save: function save() {
// Handled by PHP.
return null;
}
};
//# sourceMappingURL=index.js.map