asi-calculator/features/Prices/components/Result.tsx

17 lines
378 B
TypeScript
Raw Normal View History

2024-03-29 19:54:14 +01:00
type Props = {
symbol: string
amount: number
amountAsi: number
amountFiat: number
}
export function Result({ symbol, amount, amountAsi, amountFiat }: Props) {
return (
<p>
<span>{symbol}</span> {amount} {symbol}, convertible to{' '}
<strong>{amountAsi} ASI</strong> currently worth{' '}
<strong>${amountFiat.toFixed(2)}</strong>.
</p>
)
}