'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);

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

/**
 * Topbar Right
 * @param props
 */
var TopbarRight = function (_React$PureComponent) {
  (0, _inherits3.default)(TopbarRight, _React$PureComponent);

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

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

    return _react2.default.createElement(
      'div',
      {
        className: 'cui-top-bar__right' + ('' + (className && ' ' + className || '')) },
      children
    );
  };

  return TopbarRight;
}(_react2.default.PureComponent);

TopbarRight.displayName = 'TopbarRight';
exports.default = TopbarRight;


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

module.exports = exports['default'];