( id: string, user?: Pick<LoggedUser, 'id'>, )
| 19 | }); |
| 20 | |
| 21 | export const interestQueryOptions = ( |
| 22 | id: string, |
| 23 | user?: Pick<LoggedUser, 'id'>, |
| 24 | ) => |
| 25 | queryOptions({ |
| 26 | queryKey: generateQueryKey(RequestKey.Interests, user, id), |
| 27 | queryFn: () => getInterest(id), |
| 28 | enabled: !!user?.id && !!id, |
| 29 | }); |
| 30 | |
| 31 | export const interestFindingsQueryOptions = ( |
| 32 | id: string, |
no test coverage detected