OptionalassignableUsers that can be assigned to threads. Includes special values: "Team" for team assignment, "" (empty string) for unassigned.
OptionalcanWhether the current user can add comments to existing threads in this project. When false, UI elements for adding comments to threads should be hidden or disabled.
OptionalcanCallback to check if the current user can assign a specific thread. Returns a promise that resolves to true if the user can assign the thread, false otherwise.
OptionalcanCallback to check if the current user can edit or delete a specific comment. Returns a promise that resolves to true if the user can edit or delete the comment, false otherwise.
OptionalcanCallback to check if the current user can resolve or re-open a specific thread. Returns a promise that resolves to true if the user can resolve the thread, false otherwise.
OptionalclassAdditional class name for the component
OptionalclassClass name to apply to the display of the verse text for the first comment in the thread
Name of the current user, retrieved from the current user's Paratext Registry user information
Handler for adding a comment to a thread. This unified handler supports:
If successful, returns the auto-generated comment ID (format: "threadId/userName/date"). Otherwise, returns undefined.
Handler for deleting a comment
Handler for updating a thread's read status
Handler for updating a comment's content
Localized strings for the component
OptionalonCallback when the selected thread changes. Called when a thread is selected via click or keyboard navigation. Parent components can use this to sync their state with the internal selection.
OptionalselectedExternally controlled selected thread ID. When provided, this will be used as the selected thread instead of internal state. The parent component is responsible for updating this value when the selection changes.
Comment threads to render
Props for the CommentList component