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

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