UNPKG

1.25 kBJavaScriptView Raw
1import _extends from "@babel/runtime-corejs2/helpers/esm/extends";
2import _objectWithoutPropertiesLoose from "@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose";
3import _inheritsLoose from "@babel/runtime-corejs2/helpers/esm/inheritsLoose";
4import classNames from 'classnames';
5import React from 'react';
6import { bsClass, getClassSet, splitBsProps } from './utils/bootstrapUtils';
7
8var ButtonToolbar =
9/*#__PURE__*/
10function (_React$Component) {
11 _inheritsLoose(ButtonToolbar, _React$Component);
12
13 function ButtonToolbar() {
14 return _React$Component.apply(this, arguments) || this;
15 }
16
17 var _proto = ButtonToolbar.prototype;
18
19 _proto.render = function render() {
20 var _this$props = this.props,
21 className = _this$props.className,
22 props = _objectWithoutPropertiesLoose(_this$props, ["className"]);
23
24 var _splitBsProps = splitBsProps(props),
25 bsProps = _splitBsProps[0],
26 elementProps = _splitBsProps[1];
27
28 var classes = getClassSet(bsProps);
29 return React.createElement("div", _extends({}, elementProps, {
30 role: "toolbar",
31 className: classNames(className, classes)
32 }));
33 };
34
35 return ButtonToolbar;
36}(React.Component);
37
38export default bsClass('btn-toolbar', ButtonToolbar);
\No newline at end of file