@atlaskit/editor-plugin-quick-insert
Version:
Quick insert plugin for @atlaskit/editor-core
16 lines • 581 B
JavaScript
import React from 'react';
import HeadingItem from '@atlaskit/menu/heading-item';
import { Box } from '@atlaskit/primitives/compiled/box';
export var QuickInsertMenuSection = function QuickInsertMenuSection(_ref) {
var children = _ref.children,
title = _ref.title;
return /*#__PURE__*/React.createElement(Box, {
role: "group",
"aria-label": title
}, /*#__PURE__*/React.createElement(Box, {
paddingBlockStart: "space.150",
paddingBlockEnd: "space.050"
}, /*#__PURE__*/React.createElement(HeadingItem, {
"aria-hidden": true
}, title)), children);
};