UNPKG

@frak-labs/core-sdk

Version:

Core SDK of the Frak wallet, low level library to interact directly with the frak ecosystem.

2 lines 600 B
const e={eur:`fr-FR`,usd:`en-US`,gbp:`en-GB`};function t(t){return t&&t in e?t:`eur`}function n(t){return t?e[t]??e.eur:e.eur}function r(e,r){let i=n(r),a=t(r);return e.toLocaleString(i,{style:`currency`,currency:a,minimumFractionDigits:0,maximumFractionDigits:2})}function i(e){return e?`${e}Amount`:`eurAmount`}Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return t}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return i}}); //# sourceMappingURL=getCurrencyAmountKey-oIVOsRrF.cjs.map