10 lines
283 B
TypeScript
10 lines
283 B
TypeScript
import { pikku } from "@/pikku/http"
|
|
import { useQuery } from "@tanstack/react-query"
|
|
|
|
export const useGetCompanyCandidates = () => {
|
|
return useQuery({
|
|
queryKey: ['company', 'candidates'],
|
|
queryFn: async () => await pikku().get('/company/candidate', {})
|
|
})
|
|
}
|