"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.removeYfmTable = void 0;
const remove_node_1 = require("../../../../../utils/remove-node.js");
const removeYfmTable = (state, dispatch, _, attrs) => {
    if (!attrs)
        return false;
    const { tablePos, tableNode } = attrs;
    if (dispatch) {
        (0, remove_node_1.removeNode)({
            node: tableNode,
            pos: tablePos,
            tr: state.tr,
            dispatch,
        });
    }
    return true;
};
exports.removeYfmTable = removeYfmTable;
//# sourceMappingURL=actions.js.map
