import { axiosClient } from '@/api/axiosClient'
import type { CreateProductTypeRequest, ProductTypeDetail } from '../types'

export async function createProductType(
  payload: CreateProductTypeRequest,
): Promise<ProductTypeDetail> {
  const response = await axiosClient.post<ProductTypeDetail>(
    '/api/v1/admin/product-types',
    payload,
  )
  return response.data
}
