@atlaskit/editor-plugin-block-menu
Version:
BlockMenu plugin for @atlaskit/editor-core
14 lines • 510 B
JavaScript
import React from 'react';
import { useIntl } from 'react-intl';
import { ToolbarDropdownItemSection } from '@atlaskit/editor-toolbar';
export var MenuSection = function MenuSection(_ref) {
var children = _ref.children,
title = _ref.title,
hasSeparator = _ref.hasSeparator;
var _useIntl = useIntl(),
formatMessage = _useIntl.formatMessage;
return /*#__PURE__*/React.createElement(ToolbarDropdownItemSection, {
title: formatMessage(title),
hasSeparator: hasSeparator
}, children);
};