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

30 lines
1.1 KiB
JavaScript
Raw Normal View History

2022-04-25 02:47:15 +00:00
import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
var _excluded = ["as", "className", "fluid", "bsPrefix"];
import React from 'react';
import classNames from 'classnames';
import { useBootstrapPrefix } from './ThemeProvider';
var defaultProps = {
fluid: false
};
var Jumbotron = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
var _classes;
var _ref$as = _ref.as,
Component = _ref$as === void 0 ? 'div' : _ref$as,
className = _ref.className,
fluid = _ref.fluid,
bsPrefix = _ref.bsPrefix,
props = _objectWithoutPropertiesLoose(_ref, _excluded);
bsPrefix = useBootstrapPrefix(bsPrefix, 'jumbotron');
var classes = (_classes = {}, _classes[bsPrefix] = true, _classes[bsPrefix + "-fluid"] = fluid, _classes);
return /*#__PURE__*/React.createElement(Component, _extends({
ref: ref
}, props, {
className: classNames(className, classes)
}));
});
Jumbotron.defaultProps = defaultProps;
Jumbotron.displayName = 'Jumbotron';
export default Jumbotron;