"use strict";

var _ = _interopRequireDefault(require(".."));

var _react = _interopRequireDefault(require("react"));

var _reactDom = _interopRequireDefault(require("react-dom"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

var Item = _["default"].Item;
var menu = ['Undo', 'Redo', 'Cut', 'Copy', 'Paste'].map(function (item) {
  return /*#__PURE__*/_react["default"].createElement(Item, {
    key: item
  }, item);
});

_reactDom["default"].render( /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_["default"], {
  label: "Single",
  selectMode: "single",
  onSelect: function onSelect(keys) {
    return console.log(keys);
  },
  type: "secondary",
  style: {
    marginRight: 20
  }
}, menu), /*#__PURE__*/_react["default"].createElement(_["default"], {
  label: "Multiple",
  selectMode: "multiple",
  onSelect: function onSelect(keys) {
    return console.log(keys);
  },
  type: "secondary"
}, menu)), document.getElementById('menu-button-demo-4'));