export const getNodeName = (state, node) => {
  var _node$marks$find$attr, _node$marks, _node$marks$find, _node$marks$find$attr2;
  return (_node$marks$find$attr = node === null || node === void 0 ? void 0 : (_node$marks = node.marks) === null || _node$marks === void 0 ? void 0 : (_node$marks$find = _node$marks.find(mark => mark.type === state.schema.marks.fragment)) === null || _node$marks$find === void 0 ? void 0 : (_node$marks$find$attr2 = _node$marks$find.attrs) === null || _node$marks$find$attr2 === void 0 ? void 0 : _node$marks$find$attr2.name) !== null && _node$marks$find$attr !== void 0 ? _node$marks$find$attr : '';
};