Files
heygermany-e2e-mrg1vyey/apps/website/hooks/company/useGetCompanyCandidate.ts
e2e 1e78e21c36
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 09:36:03 +02:00

10 lines
370 B
TypeScript

import { pikku } from "@/pikku/http"
import { useQuery } from "@tanstack/react-query"
export const useGetCompanyCandidate = (candidateId: string) => {
return useQuery({
queryKey: ['company', 'candidate', candidateId],
queryFn: async () => await pikku().get('/company/candidate/:candidateId', { candidateId }),
enabled: !!candidateId
})
}