'use strict';

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

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

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