const Price = ({ amount, currencyCode, ...props }: { amount: string; currencyCode: string | 'SEK' | 'GPB'; } & React.ComponentProps<'p'>) => (
{`${new Intl.NumberFormat(undefined, { style: 'currency', currency: currencyCode, currencyDisplay: 'narrowSymbol' }).format(parseFloat(amount))} ${currencyCode}`}
); export default Price;