import { LexicalEditor } from 'lexical'; import React, { createContext } from 'react'; interface IEditorContext { initialEditor: LexicalEditor; activeEditor: LexicalEditor; setActiveEditor: React.Dispatch>; } const EditorContext = createContext(null); export default EditorContext;