import { createPluginFactory } from '@udecode/plate-common';

import { DocumentPlugin } from './types';

export const ELEMENT_ATTACHMENT_DOCUMENT = 'attachment_document';

export const createAttachmentDocumentPlugin =
  createPluginFactory<DocumentPlugin>({
    key: ELEMENT_ATTACHMENT_DOCUMENT,
    isElement: true,
    isVoid: true,
  });
