Files
heygermany-e2e-mrg511by/apps/website/hooks/backoffice/useGetBackOfficeCandidate.ts
e2e 36f1b746bd
Some checks failed
Main / Setup and Test (push) Has been cancelled
Main / Build Website (push) Has been cancelled
chore: heygermany customer project
2026-07-11 11:03:59 +02:00

10 lines
379 B
TypeScript

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
})
}