UNPKG

ggez-banking-sdk

Version:

A Node.js package to handle GGEZ Banking API endpoints, Simplify the process of managing CRUD operations with this efficient and easy-to-use package.

23 lines (22 loc) 844 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const countries_1 = __importDefault(require("../content/countries")); const accountCurrencies_1 = __importDefault(require("../content/accountCurrencies")); const UseCountryAndCurrencyData = () => { const country = countries_1.default.map((e) => { const data = { label: e.Name, value: e.Code.toString() }; return data; }); const currency = accountCurrencies_1.default.map((e) => { const data = { label: `${e.Code} - ${e.Location}`, value: e.Code, }; return data; }); return { country, currency }; }; exports.default = UseCountryAndCurrencyData;