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 TabContent = /*#__PURE__*/ function (_React$Component) { _inheritsLoose(TabContent, _React$Component); function TabContent() { return _React$Component.apply(this, arguments) || this; } var _proto = TabContent.prototype; _proto.render = function render() { // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595 var _this$props = this.props, bsPrefix = _this$props.bsPrefix, _this$props$as = _this$props.as, Component = _this$props$as === void 0 ? 'div' : _this$props$as, className = _this$props.className, props = _objectWithoutPropertiesLoose(_this$props, ["bsPrefix", "as", "className"]); return React.createElement(Component, _extends({}, props, { className: classNames(className, bsPrefix) })); }; return TabContent; }(React.Component); export default createBootstrapComponent(TabContent, 'tab-content');