GoScrobble/web/node_modules/react-bootstrap/esm/TabContent.js

21 lines
862 B
JavaScript

import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
var _excluded = ["bsPrefix", "as", "className"];
import classNames from 'classnames';
import React from 'react';
import { useBootstrapPrefix } from './ThemeProvider';
var TabContent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
var bsPrefix = _ref.bsPrefix,
_ref$as = _ref.as,
Component = _ref$as === void 0 ? 'div' : _ref$as,
className = _ref.className,
props = _objectWithoutPropertiesLoose(_ref, _excluded);
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'tab-content');
return /*#__PURE__*/React.createElement(Component, _extends({
ref: ref
}, props, {
className: classNames(className, decoratedBsPrefix)
}));
});
export default TabContent;