Skip to content

armgit / fider

Public Imported from GitHub
0

Open platform to collect and prioritize feedback

328 B
Raw Blame
import React from "react"

interface MomentProps {
  locale: string
  amount: number
  currency: string
}

export const Money = (props: MomentProps) => {
  const formatter = new Intl.NumberFormat(props.locale, {
    style: "currency",
    currency: props.currency,
  })

  return <span>{formatter.format(props.amount)}</span>
}