"use strict";

exports.__esModule = true;
exports.default = void 0;

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

var _propTypes = _interopRequireDefault(require("prop-types"));

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

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

function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }

var TopbarNav =
/*#__PURE__*/
function (_React$Component) {
  _inheritsLoose(TopbarNav, _React$Component);

  function TopbarNav() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = TopbarNav.prototype;

  _proto.render = function render() {
    var _this$props = this.props,
        children = _this$props.children,
        className = _this$props.className;
    return _react.default.createElement("nav", {
      className: "cui-top-bar__nav" + ("" + (className && " " + className || ''))
    }, _react.default.createElement(_.List, {
      tabType: "horizontal"
    }, children));
  };

  return TopbarNav;
}(_react.default.Component);

TopbarNav.displayName = 'TopbarNav';
TopbarNav.defaultProps = {
  children: null,
  className: ''
};
TopbarNav.propTypes = {
  /**
   * Children components
   */
  children: _propTypes.default.node,

  /**
   * CSS classnames
   */
  className: _propTypes.default.string
};
var _default = TopbarNav;
exports.default = _default;