import React from "react";
import { StyledCommandPaletteList, StyledHeading } from "./CommandPalette.styles";
export const CommandPaletteList = _ref => {
  let {
    children,
    heading,
    visible = false
  } = _ref;
  return visible ? /*#__PURE__*/React.createElement(StyledCommandPaletteList, {
    className: "cp-list",
    tabIndex: -1,
    role: "listbox"
  }, heading ? /*#__PURE__*/React.createElement(StyledHeading, {
    tabIndex: -1
  }, heading) : null, children) : null;
};
CommandPaletteList.displayName = "CommandPaletteList";
//# sourceMappingURL=CommandPaletteList.js.map