import { toHeading } from "./commands.js";
import { hasParentHeading } from "./utils.js";
export const headingAction = (_nodeType, level) => {
    const cmd = toHeading(level);
    return {
        isActive: hasParentHeading(level),
        isEnable: cmd,
        run: cmd,
    };
};
//# sourceMappingURL=actions.js.map
