import {Context, createContext} from "react";
import {Editor} from "@tiptap/core";

export interface EditorContextProps {
    editor: Editor | null
}

export const EditorContext: Context<EditorContextProps> = createContext<EditorContextProps>({
    editor: null
});
