mirror of
https://github.com/outline/outline.git
synced 2026-11-21 21:44:30 +03:00
9 lines
236 B
TypeScript
9 lines
236 B
TypeScript
import { createContext, useContext } from "react";
|
|
import type { Editor } from "../";
|
|
|
|
const EditorContext = createContext<Editor>({} as Editor);
|
|
|
|
export const useEditor = () => useContext(EditorContext);
|
|
|
|
export default EditorContext;
|