import clsx from 'clsx'; const Price = ({ amount, className, currencyCode = 'USD', currencyCodeClassName, showCurrency = false }: { amount: string; className?: string; currencyCode: string; currencyCodeClassName?: string; showCurrency?: boolean; } & React.ComponentProps<'p'>) => (

{`${new Intl.NumberFormat(undefined, { style: 'currency', currency: currencyCode, currencyDisplay: 'narrowSymbol' }).format(parseFloat(amount))}`} {showCurrency && ( {`${currencyCode}`} )}

); export default Price;