import { __assign, __extends } from "tslib";
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import cn from 'classnames';
import AbstractTrigger from '../AbstractTrigger';
var SingleUploadTrigger = (function (_super) {
    __extends(SingleUploadTrigger, _super);
    function SingleUploadTrigger() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    SingleUploadTrigger.prototype.render = function () {
        var _a;
        var _b = this.props, i18n = _b.i18n, disabled = _b.disabled;
        return (_jsxs("div", __assign({ className: cn('zent-single-upload-trigger', (_a = {},
                _a['zent-single-upload-trigger__disabled'] = disabled,
                _a)), onClick: this.onClickTrigger, onDragOver: this.onTriggerDragOver, onDrop: this.onTriggerDrop, "data-zv": 'v10.0.11' }, { children: [_jsx("a", __assign({ className: "zent-single-upload-trigger-text", "data-zv": 'v10.0.11' }, { children: i18n.add }), void 0), this.renderFileInput()] }), void 0));
    };
    return SingleUploadTrigger;
}(AbstractTrigger));
export default SingleUploadTrigger;
