"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.addFileWidget = void 0;
const widget_1 = require("./widget.js");
const addFileWidget = (deps, uploadFiles) => ({
    isEnable: (state) => state.selection.empty,
    run(state, dispatch) {
        dispatch((0, widget_1.addWidget)(state.tr, deps, uploadFiles));
    },
});
exports.addFileWidget = addFileWidget;
//# sourceMappingURL=actions.js.map
