feat: enable recursive comment threading up to 3 levels deep

This commit is contained in:
2026-04-29 12:52:26 +08:00
parent 171cbaaeee
commit c54e332a9e
+2 -2
View File
@@ -14,6 +14,8 @@ import { useSession } from "@/lib/auth-client"
import { TiptapRenderer } from "@/components/tiptap-renderer"
import { TiptapEditor } from "@/components/tiptap-editor"
const MAX_DEPTH = 3
export interface CommentData {
id: string
gameId: string
@@ -40,8 +42,6 @@ function getInitial(name: string | null | undefined): string {
return name?.charAt(0)?.toUpperCase() || "?"
}
const MAX_DEPTH = 3
interface CommentItemProps {
comment: CommentData
depth?: number