text: "use strict";
  
  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  exports.default = void 0;
  
  var _react = _interopRequireDefault(require("react"));
  
  var _ToolSwitcherWidget = _interopRequireDefault(require("./ToolSwitcherWidget.css"));
  
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  
  function ToolSwitcherWidget(props) {
    var tools = props.tools,
        direction = props.direction,
        renderItem = props.renderItem;
    var showIcon = true;
    var showLabel = direction === 'vertical';
    return /*#__PURE__*/_react.default.createElement("ul", {
      className: direction === 'horizontal' ? _ToolSwitcherWidget.default.rootHorizontal : _ToolSwitcherWidget.default.rootVertical,
      "data-tone": "navbar"
    }, tools.map(tool => {
      return /*#__PURE__*/_react.default.createElement("li", {
        key: tool.name,
        className: _ToolSwitcherWidget.default.item
      }, renderItem(tool, showIcon, showLabel));
    }));
  }
  
  ToolSwitcherWidget.defaultProps = {
    activeToolName: undefined,
    tools: [],
    direction: 'horizontal'
  };
  var _default = ToolSwitcherWidget;
  exports.default = _default;