'use client' import { FC } from 'react' import { MDXEditor, MDXEditorMethods, headingsPlugin } from '@mdxeditor/editor' interface EditorProps { markdown: string editorRef?: React.MutableRefObject } /** * Extend this Component further with the necessary plugins or props you need. * proxying the ref is necessary. Next.js dynamically imported components don't support refs. */ const Editor: FC = ({ markdown, editorRef }) => { return } export default Editor