import { usePublicApi } from '..'; import type { CardFlags, CountryAlpha3, CountryResponse } from '../types'; export function listContries() { return usePublicApi>({ method: 'GET', endpoint: '/common/countries', }); } export function countryDetail(code: CountryAlpha3) { return usePublicApi({ method: 'GET', endpoint: `/common/country/${code}`, }); } export function listCardFlags() { return usePublicApi({ method: 'GET', endpoint: '/publics/payments/card-flags', }); }