Kind: Interface
Source: atloria-monorepo/packages/ui-react/src/hooks/useComments.ts
Return type for useComments hook
Properties
| Property | Type |
|---|---|
comments | CommentWithUser[] |
loading | boolean |
error | `Error |
addComment | (dto: CreateCommentDto) => Promise<CommentWithUser> |
updateComment | (commentId: string, content: string) => Promise<CommentWithUser> |
deleteComment | (commentId: string) => Promise<void> |
resolveComment | (commentId: string) => Promise<CommentWithUser> |
unresolveComment | (commentId: string) => Promise<CommentWithUser> |
addReply | (parentCommentId: string, content: string) => Promise<CommentWithUser> |
refresh | () => Promise<void> |
Was this page helpful?