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

22 lines
830 B
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 defaultProps = {
role: 'toolbar'
};
var ButtonToolbar = React.forwardRef(function (_ref, ref) {
var bsPrefix = _ref.bsPrefix,
className = _ref.className,
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className"]);
var prefix = useBootstrapPrefix(bsPrefix, 'btn-toolbar');
return React.createElement("div", _extends({}, props, {
ref: ref,
className: classNames(className, prefix)
}));
});
ButtonToolbar.displayName = 'ButtonToolbar';
ButtonToolbar.defaultProps = defaultProps;
export default ButtonToolbar;