Files
heygermany-e2e-mrg5ilhk/apps/website/hooks/company/useGetCompanyCandidate.ts
e2e 40352e4179
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:17:38 +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
})
}