'use strict';

exports.__esModule = true;

var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');

var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);

var _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');

var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);

var _inherits2 = require('babel-runtime/helpers/inherits');

var _inherits3 = _interopRequireDefault(_inherits2);

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

var _propTypes = require('prop-types');

var _propTypes2 = _interopRequireDefault(_propTypes);

var _List = require('../List');

var _List2 = _interopRequireDefault(_List);

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

var TopbarNav = function (_React$Component) {
  (0, _inherits3.default)(TopbarNav, _React$Component);

  function TopbarNav() {
    (0, _classCallCheck3.default)(this, TopbarNav);
    return (0, _possibleConstructorReturn3.default)(this, _React$Component.apply(this, arguments));
  }

  TopbarNav.prototype.render = function render() {
    var _props = this.props,
        children = _props.children,
        className = _props.className;


    return _react2.default.createElement(
      'nav',
      {
        className: 'cui-top-bar__nav' + ('' + (className && ' ' + className || '')) },
      _react2.default.createElement(
        _List2.default,
        { tabType: 'horizontal' },
        children
      )
    );
  };

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

TopbarNav.displayName = 'TopbarNav';
exports.default = TopbarNav;


TopbarNav.defaultProps = {
  children: null,
  className: ''
};

module.exports = exports['default'];