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

23 lines
959 B
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", "bsPrefix", "children", "className"];
import classNames from 'classnames';
import React from 'react';
import { useBootstrapPrefix } from './ThemeProvider';
var CarouselItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
var _ref$as = _ref.as,
Component = _ref$as === void 0 ? 'div' : _ref$as,
bsPrefix = _ref.bsPrefix,
children = _ref.children,
className = _ref.className,
props = _objectWithoutPropertiesLoose(_ref, _excluded);
var finalClassName = classNames(className, useBootstrapPrefix(bsPrefix, 'carousel-item'));
return /*#__PURE__*/React.createElement(Component, _extends({
ref: ref
}, props, {
className: finalClassName
}), children);
});
CarouselItem.displayName = 'CarouselItem';
export default CarouselItem;