# UseCommentsReturn

**Kind:** Interface

**Source:** [`atloria-monorepo/packages/ui-react/src/hooks/useComments.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/packages/ui-react/src/hooks/useComments.ts#L19)

Return type for useComments hook

## Properties

| Property | Type |
|---|---|
| `comments` | `CommentWithUser[]` |
| `loading` | `boolean` |
| `error` | `Error | null` |
| `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>` |
