Gazebo_simulation-Frontend/node_modules/react-bootstrap/esm/Spinner.js

26 lines
1.1 KiB
JavaScript
Raw Normal View History

2020-12-21 11:29:31 -04:00
import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import classNames from 'classnames';
import React from 'react';
import { useBootstrapPrefix } from './ThemeProvider';
var Spinner = React.forwardRef(function (_ref, ref) {
var bsPrefix = _ref.bsPrefix,
variant = _ref.variant,
animation = _ref.animation,
size = _ref.size,
children = _ref.children,
_ref$as = _ref.as,
Component = _ref$as === void 0 ? 'div' : _ref$as,
className = _ref.className,
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "animation", "size", "children", "as", "className"]);
bsPrefix = useBootstrapPrefix(bsPrefix, 'spinner');
var bsSpinnerPrefix = bsPrefix + "-" + animation;
return React.createElement(Component, _extends({
ref: ref
}, props, {
className: classNames(className, bsSpinnerPrefix, size && bsSpinnerPrefix + "-" + size, variant && "text-" + variant)
}), children);
});
Spinner.displayName = 'Spinner';
export default Spinner;