'use client'

import { useMutation } from '@tanstack/react-query'
import { apiClient } from '../client'
import type { ApiEnrichedContactData } from '@/lib/contacts/discovery-types'
import type { ImproveContactPayload } from '@/lib/contacts/improve-contact'

export function useImproveContact() {
  return useMutation({
    mutationFn: (payload: ImproveContactPayload) =>
      apiClient.post<ApiEnrichedContactData>('/contacts/improve', payload),
  })
}
