import { axiosClient } from '@/api/axiosClient'
import type { UserDetail } from '../types'

export async function deactivateUser(id: number): Promise<UserDetail> {
  const response = await axiosClient.patch<UserDetail>(`/api/v1/users/${id}/deactivate`)
  return response.data
}
