text: import _extends from "@babel/runtime/helpers/esm/extends";
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
  import _inheritsLoose from "@babel/runtime/helpers/esm/inheritsLoose";
  import classNames from 'classnames';
  import React from 'react';
  import { createBootstrapComponent } from './ThemeProvider';
  
  var ModalBody =
  /*#__PURE__*/
  function (_React$Component) {
    _inheritsLoose(ModalBody, _React$Component);
  
    function ModalBody() {
      return _React$Component.apply(this, arguments) || this;
    }
  
    var _proto = ModalBody.prototype;
  
    _proto.render = function render() {
      var _this$props = this.props,
          Component = _this$props.as,
          bsPrefix = _this$props.bsPrefix,
          className = _this$props.className,
          props = _objectWithoutPropertiesLoose(_this$props, ["as", "bsPrefix", "className"]);
  
      return React.createElement(Component, _extends({}, props, {
        className: classNames(className, bsPrefix)
      }));
    };
  
    return ModalBody;
  }(React.Component);
  
  ModalBody.defaultProps = {
    as: 'div'
  };
  export default createBootstrapComponent(ModalBody, 'modal-body');