import { axiosClient } from '@/api/axiosClient'
import type { ChargeableCharConfig, CreateChargeableCharConfigRequest } from '../types'

export async function createChargeableCharConfig(
  payload: CreateChargeableCharConfigRequest,
): Promise<ChargeableCharConfig> {
  const response = await axiosClient.post<ChargeableCharConfig>(
    '/api/v1/admin/chargeable-chars',
    payload,
  )
  return response.data
}
