"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.CommandPaletteList = void 0;
var _react = _interopRequireDefault(require("react"));
var _CommandPalette = require("./CommandPalette.styles");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var CommandPaletteList = exports.CommandPaletteList = function CommandPaletteList(_ref) {
  var children = _ref.children,
    heading = _ref.heading,
    _ref$visible = _ref.visible,
    visible = _ref$visible === void 0 ? false : _ref$visible;
  return visible ? /*#__PURE__*/_react.default.createElement(_CommandPalette.StyledCommandPaletteList, {
    className: "cp-list",
    tabIndex: -1,
    role: "listbox"
  }, heading ? /*#__PURE__*/_react.default.createElement(_CommandPalette.StyledHeading, {
    tabIndex: -1
  }, heading) : null, children) : null;
};
CommandPaletteList.displayName = "CommandPaletteList";
//# sourceMappingURL=CommandPaletteList.js.map