Initial commit

This commit is contained in:
2026-03-05 16:46:38 +07:00
commit 112e8604e2
124 changed files with 14369 additions and 0 deletions
@@ -0,0 +1,24 @@
"use client"
import { useEffect } from "react"
import { useAuth } from "@/lib/auth-context"
import { useBookmarks } from "@/lib/bookmark-context"
interface ChapterReaderProgressProps {
novelId: string
chapterId: string
chapterNumber: number
}
export function ChapterReaderProgress({ novelId, chapterId, chapterNumber }: ChapterReaderProgressProps) {
const { user } = useAuth()
const { updateProgress } = useBookmarks()
useEffect(() => {
if (user) {
updateProgress(novelId, chapterId, chapterNumber)
}
}, [user, novelId, chapterId, chapterNumber, updateProgress])
return null
}