- Deleted redundant components (`AddActionButton`, `AlertBox`, `AlertStack`, `BackButton`, `CancelButton`, and `CollapsableArea`) and related files. - Removed unused models (`Book`, `BookSerie`, `BookTables`, `Character`, and `Chapter`) to reduce codebase clutter. - Updated project structure and references to reflect these removals.
11 lines
276 B
TypeScript
Executable File
11 lines
276 B
TypeScript
Executable File
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
|
|
});
|