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

import { AudioPlugin } from './types';

export const ELEMENT_ATTACHMENT_AUDIO = 'attachment_audio';

export const createAttachmentAudioPlugin = createPluginFactory<AudioPlugin>({
  key: ELEMENT_ATTACHMENT_AUDIO,
  isElement: true,
  isVoid: true,
});
