"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.addLinkPlaceholder = void 0;
const descriptor_1 = require("./descriptor.js");
const addLinkPlaceholder = (deps) => (state, dispatch) => {
    if (!state.selection.empty)
        return false;
    dispatch?.((0, descriptor_1.addPlaceholder)(state.tr, deps).scrollIntoView());
    return true;
};
exports.addLinkPlaceholder = addLinkPlaceholder;
//# sourceMappingURL=commands.js.map
