UNPKG

@atlaskit/dropdown-menu

Version:

A dropdown menu displays a list of actions or options to a user.

20 lines • 942 B
/* keyboard-shortcut.tsx generated by @compiled/babel-plugin v3.0.2 */ import "./keyboard-shortcut.compiled.css"; import * as React from 'react'; import { ax, ix } from "@compiled/react/runtime"; import { Inline } from '@atlaskit/primitives/compiled/inline'; var shortcutStyles = { shortcutSegment: "_11c8wadc _19itglyw _2rkolb4i _1e0c1txw _4cvr1h6o _1bah1h6o _4t3i1k92 _1ul91k92 _vchhusvi _bozg12x7 _y4ti12x7 _16qsn7od _1254n7od _cgnln7od _syazi7uo _ahbqn7od _12l2n7od _1pfhn7od _6rthn7od _w19jn7od _bfhktoke" }; var KeyboardShortcut = function KeyboardShortcut(_ref) { var shortcut = _ref.shortcut; return /*#__PURE__*/React.createElement(Inline, { space: "space.025" }, shortcut.map(function (segment, index) { return /*#__PURE__*/React.createElement("kbd", { key: "".concat(segment, "-").concat(index), className: ax([shortcutStyles.shortcutSegment]) }, segment); })); }; export default KeyboardShortcut;