import { axiosClient } from '@/api/axiosClient'
import type { CreateProductRequest, ProductDetail } from '../types'

export async function createProduct(
  payload: CreateProductRequest,
): Promise<ProductDetail> {
  const response = await axiosClient.post<ProductDetail>(
    '/api/v1/admin/products',
    payload,
  )
  return response.data
}
