import { definePmNodeConverter } from "./../pm-converters/types.js";
import { Node_Type } from "./../ricos-schema/next-schema/index.js";
const dividerConverter = definePmNodeConverter({
  toPm: {
    types: [Node_Type.DIVIDER],
    convert: (node) => ({
      type: Node_Type.DIVIDER,
      attrs: {
        ...node.dividerData,
        id: node.id
      }
    })
  },
  fromPm: {
    types: [Node_Type.DIVIDER],
    convert: (node) => {
      const { id, ...data } = node.attrs || {};
      return {
        type: Node_Type.DIVIDER,
        id,
        nodes: [],
        dividerData: {
          ...data
        }
      };
    }
  }
});
export {
  dividerConverter
};
//# sourceMappingURL=divider-converter.js.map
