- Delete `SyncService` and its associated bidirectional synchronization logic. - Add multiple context providers (`OfflineProvider`, `AlertProvider`, `LangContext`, `UserContext`, `SessionContext`, `WorldContext`, `SettingBookContext`) for contextual state management. - Implement `SecureStorage` for OS-level secure data encryption and replace dependency on `SyncService` synchronization. - Update localization files (`en.json`, `fr.json`) with offline mode and error-related strings.
11 lines
238 B
TypeScript
Executable File
11 lines
238 B
TypeScript
Executable File
import {createContext} from "react";
|
|
import {Editor} from "@tiptap/core";
|
|
|
|
export interface EditorContextProps {
|
|
editor: Editor | null
|
|
}
|
|
|
|
export const EditorContext = createContext<EditorContextProps>({
|
|
editor: null
|
|
});
|