Fix auto scroll related tsc issues

This commit is contained in:
schroda
2024-12-27 03:29:17 +01:00
parent 0e9d758c10
commit 7c0ce65683
3 changed files with 6 additions and 0 deletions

View File

@@ -11,9 +11,13 @@ import { TReaderAutoScrollContext } from '@/modules/reader/types/Reader.types.ts
export const ReaderAutoScrollContext = createContext<TReaderAutoScrollContext>({
isActive: false,
isPaused: false,
setScrollRef: () => {},
start: () => {},
cancel: () => {},
toggleActive: () => {},
pause: () => {},
resume: () => {},
});
export const useReaderAutoScrollContext = () => useContext(ReaderAutoScrollContext);