UNPKG

@wordpress/edit-post

Version:
30 lines (25 loc) 745 B
import { createElement } from "@wordpress/element"; /** * External dependencies */ import { isEmpty } from 'lodash'; /** * WordPress dependencies */ import { createSlotFill, MenuGroup } from '@wordpress/components'; import { __ } from '@wordpress/i18n'; var _createSlotFill = createSlotFill('PluginsMoreMenuGroup'), PluginsMoreMenuGroup = _createSlotFill.Fill, Slot = _createSlotFill.Slot; PluginsMoreMenuGroup.Slot = function (_ref) { var fillProps = _ref.fillProps; return createElement(Slot, { fillProps: fillProps }, function (fills) { return !isEmpty(fills) && createElement(MenuGroup, { label: __('Plugins') }, fills); }); }; export default PluginsMoreMenuGroup; //# sourceMappingURL=index.js.map