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

export async function deleteChargeableCharConfig(
  id: number,
): Promise<DeleteChargeableCharConfigResponse> {
  const response = await axiosClient.delete<DeleteChargeableCharConfigResponse>(
    `/api/v1/admin/chargeable-chars/${id}`,
  )
  return response.data
}
