mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-25 09:55:15 +00:00
23 lines
883 B
JavaScript
23 lines
883 B
JavaScript
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
||
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
||
|
var _excluded = ["bsPrefix", "className"];
|
||
|
import classNames from 'classnames';
|
||
|
import React from 'react';
|
||
|
import { useBootstrapPrefix } from './ThemeProvider';
|
||
|
var defaultProps = {
|
||
|
role: 'toolbar'
|
||
|
};
|
||
|
var ButtonToolbar = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
||
|
var bsPrefix = _ref.bsPrefix,
|
||
|
className = _ref.className,
|
||
|
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
||
|
|
||
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-toolbar');
|
||
|
return /*#__PURE__*/React.createElement("div", _extends({}, props, {
|
||
|
ref: ref,
|
||
|
className: classNames(className, prefix)
|
||
|
}));
|
||
|
});
|
||
|
ButtonToolbar.displayName = 'ButtonToolbar';
|
||
|
ButtonToolbar.defaultProps = defaultProps;
|
||
|
export default ButtonToolbar;
|