diff --git a/components/comments/comment-item.tsx b/components/comments/comment-item.tsx index 2952685..eb61219 100644 --- a/components/comments/comment-item.tsx +++ b/components/comments/comment-item.tsx @@ -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