type FormattedCurrencyProps = {
  number: number;
};

const FormattedCurrency = ({ number }: FormattedCurrencyProps) => {
  return (
    <>
      {new Intl.NumberFormat("en-US", {
        style: "currency",
        currency: "AUD",
      }).format(number)}
    </>
  );
};

export { FormattedCurrency, FormattedCurrencyProps };
