import { pikku } from "@/pikku/http"
import { useQuery } from "@tanstack/react-query"

export const useGetBackOfficeCandidateResult = (candidateId: string) => {
    return useQuery({
        queryKey: ['backoffice', 'candidate', candidateId, 'result'],
        queryFn: async () => await pikku().get(`/backoffice/candidate/:candidateId/result`, { candidateId }),
        enabled: !!candidateId
    })
}