import { Decoration_Type } from "./../ricos-schema/next-schema/index.js";
const mentionConverter = {
  fromPm: {
    type: Decoration_Type.MENTION,
    convert: (mark) => {
      const { attrs = {} } = mark;
      return [
        {
          type: Decoration_Type.MENTION,
          mentionData: attrs
        }
      ];
    }
  },
  toPm: {
    type: Decoration_Type.MENTION,
    convert: (decoration) => {
      const { mentionData } = decoration;
      return {
        type: Decoration_Type.MENTION,
        attrs: mentionData
      };
    }
  }
};
export {
  mentionConverter
};
//# sourceMappingURL=mention-converter.js.map
