chore: heygermany customer project
This commit is contained in:
10
apps/website/hooks/backoffice/useGetBackOfficeCandidate.ts
Normal file
10
apps/website/hooks/backoffice/useGetBackOfficeCandidate.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { pikku } from "@/pikku/http"
|
||||
import { useQuery } from "@tanstack/react-query"
|
||||
|
||||
export const useGetBackOfficeCandidate = (candidateId: string) => {
|
||||
return useQuery({
|
||||
queryKey: ['backoffice', 'candidate', candidateId],
|
||||
queryFn: async () => await pikku().get(`/backoffice/candidate/:candidateId`, { candidateId }),
|
||||
enabled: !!candidateId
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user