import * as tslib_1 from "tslib";
import * as React from 'react';
import classnames from 'classnames';
var defaultProps = {
    prefixCls: 'ty-btn-group',
    size: 'md',
    color: 'default',
};
var ButtonGroup = function (props) {
    var _a;
    var size = props.size, ripple = props.ripple, color = props.color, round = props.round, className = props.className, prefixCls = props.prefixCls, style = props.style, children = props.children;
    var cls = classnames(prefixCls, className, (_a = {}, _a[prefixCls + "_round"] = round, _a));
    return (React.createElement("div", { className: cls, style: style }, React.Children.map(children, function (child) {
        var btnProps = tslib_1.__assign({}, child.props, { size: size, ripple: ripple, color: color });
        return React.cloneElement(child, btnProps);
    })));
};
ButtonGroup.defaultProps = defaultProps;
export default ButtonGroup;
//# sourceMappingURL=button-group.js.map