import { apiClient, getDataOrThrow } from "@/lib/api"; import { FALLBACK_CURRENCY, type WhmcsCurrency } from "@customer-portal/domain/billing"; export { FALLBACK_CURRENCY }; export const currencyService = { async getDefaultCurrency(): Promise { const response = await apiClient.GET("/api/currency/default"); return getDataOrThrow(response, "Failed to get default currency"); }, async getAllCurrencies(): Promise { const response = await apiClient.GET("/api/currency/all"); return getDataOrThrow(response, "Failed to get currencies"); }, };