text: import _extends from "@babel/runtime/helpers/es6/extends";
  import _objectWithoutProperties from "@babel/runtime/helpers/es6/objectWithoutProperties";
  import _inheritsLoose from "@babel/runtime/helpers/es6/inheritsLoose";
  import classNames from 'classnames';
  import React from 'react';
  import PropTypes from 'prop-types';
  import { prefix } from './utils/bootstrapUtils';
  var contextTypes = {
    $bs_navbar: PropTypes.shape({
      bsClass: PropTypes.string
    })
  };
  
  var NavbarBrand =
  /*#__PURE__*/
  function (_React$Component) {
    _inheritsLoose(NavbarBrand, _React$Component);
  
    function NavbarBrand() {
      return _React$Component.apply(this, arguments) || this;
    }
  
    var _proto = NavbarBrand.prototype;
  
    _proto.render = function render() {
      var _props = this.props,
          className = _props.className,
          children = _props.children,
          props = _objectWithoutProperties(_props, ["className", "children"]);
  
      var navbarProps = this.context.$bs_navbar || {
        bsClass: 'navbar'
      };
      var bsClassName = prefix(navbarProps, 'brand');
  
      if (React.isValidElement(children)) {
        return React.cloneElement(children, {
          className: classNames(children.props.className, className, bsClassName)
        });
      }
  
      return React.createElement("span", _extends({}, props, {
        className: classNames(className, bsClassName)
      }), children);
    };
  
    return NavbarBrand;
  }(React.Component);
  
  NavbarBrand.contextTypes = contextTypes;
  export default NavbarBrand;