import * as tslib_1 from "tslib";
import React from 'react';
import classnames from 'classnames';
var defaultProps = {
    prefixCls: 'ty-input-group-btn',
    disabled: false,
    size: 'md',
};
var InputGroupButton = function (props) {
    var _a;
    var inside = props.inside, disabled = props.disabled, size = props.size, onClick = props.onClick, prefixCls = props.prefixCls, className = props.className, style = props.style, children = props.children, restProps = tslib_1.__rest(props, ["inside", "disabled", "size", "onClick", "prefixCls", "className", "style", "children"]);
    var cls = classnames(prefixCls, className, prefixCls + "_" + size, (_a = {},
        _a[prefixCls + "_disabled"] = disabled,
        _a[prefixCls + "_inside"] = inside,
        _a));
    var _btnOnClick = function (e) {
        !disabled && onClick && onClick(e);
    };
    return React.createElement("span", tslib_1.__assign({ className: cls, style: style, onClick: _btnOnClick }, restProps), children);
};
InputGroupButton.defaultProps = defaultProps;
export default InputGroupButton;
//# sourceMappingURL=input-group-button.js.map