interface CommentThreadProps

Passed to CommentThread by the Dump page, which holds the comments. The page applies the changes this user makes through the callbacks, and the ones others make from the socket's comment events, so a change can come both ways and must be applied once.

Properties

dumpId: string

Every comment on the dump, flat and oldest first, deleted ones included so their replies keep their place.

onCommentCreated: (comment: Comment) => void
onCommentDeleted: (commentId: string) => void
onCommentUpdated: (comment: Comment) => void

Usage

import { type CommentThreadProps } from "src/components/comment/CommentThread.tsx";