import { __assign } from "tslib";
import { jsx as _jsx } from "react/jsx-runtime";
import cx from 'classnames';
import Button from '../../button';
import { Direction } from '../constants';
import Icon from '../../icon';
var ArrowButton = function (_a) {
    var _b;
    var direction = _a.direction, onChange = _a.onChange, disabled = _a.disabled, prefix = _a.prefix;
    return (_jsx(Button, __assign({ type: disabled ? 'default' : 'primary', disabled: disabled, onClick: onChange, className: prefix + "__arrow__button" }, { children: _jsx(Icon, { type: Direction.Right === direction ? 'right' : 'left', className: cx(prefix + "__arrow__icon", (_b = {},
                _b[prefix + "__arrow__icon--disabled"] = disabled,
                _b)) }, void 0) }), void 0));
};
export default ArrowButton;
