# UseSuggestionsReturn

**Kind:** Interface

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

Return type for useSuggestions hook

## Properties

| Property | Type |
|---|---|
| `suggestions` | `SuggestionWithUser[]` |
| `loading` | `boolean` |
| `error` | `Error | null` |
| `addSuggestion` | `(dto: CreateSuggestionDto) => Promise<SuggestionWithUser>` |
| `updateSuggestion` | `(suggestionId: string, status: SuggestionStatus, reviewComment?: string) => Promise<SuggestionWithUser>` |
| `deleteSuggestion` | `(suggestionId: string) => Promise<void>` |
| `acceptSuggestion` | `(suggestionId: string, reviewComment?: string) => Promise<SuggestionWithUser>` |
| `rejectSuggestion` | `(suggestionId: string, reviewComment?: string) => Promise<SuggestionWithUser>` |
| `refresh` | `() => Promise<void>` |
