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