'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var formatting = require('@transferwise/formatting');
var reactIntl = require('react-intl');
var jsxRuntime = require('react/jsx-runtime');

const Money = ({
  amount,
  currency,
  alwaysShowDecimals = false
}) => {
  const {
    locale
  } = reactIntl.useIntl();
  return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
    children: formatting.formatMoney(amount, currency, locale, {
      alwaysShowDecimals
    })
  });
};

exports.default = Money;
//# sourceMappingURL=Money.js.map
