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

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