1 | import _extends from "@babel/runtime/helpers/esm/extends";
|
2 | import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
3 | import React from 'react';
|
4 | import classNames from 'classnames';
|
5 | import { useBootstrapPrefix } from './ThemeProvider';
|
6 | var defaultProps = {
|
7 | fluid: false
|
8 | };
|
9 | var Jumbotron = React.forwardRef(function (_ref, ref) {
|
10 | var _classes;
|
11 |
|
12 | var _ref$as = _ref.as,
|
13 | Component = _ref$as === void 0 ? 'div' : _ref$as,
|
14 | className = _ref.className,
|
15 | fluid = _ref.fluid,
|
16 | bsPrefix = _ref.bsPrefix,
|
17 | props = _objectWithoutPropertiesLoose(_ref, ["as", "className", "fluid", "bsPrefix"]);
|
18 |
|
19 | bsPrefix = useBootstrapPrefix(bsPrefix, 'jumbotron');
|
20 | var classes = (_classes = {}, _classes[bsPrefix] = true, _classes[bsPrefix + "-fluid"] = fluid, _classes);
|
21 | return React.createElement(Component, _extends({
|
22 | ref: ref
|
23 | }, props, {
|
24 | className: classNames(className, classes)
|
25 | }));
|
26 | });
|
27 | Jumbotron.defaultProps = defaultProps;
|
28 | Jumbotron.displayName = 'Jumbotron';
|
29 | export default Jumbotron; |
\ | No newline at end of file |