asi-calculator/features/Prices/components/Result.tsx
2024-03-29 18:54:14 +00:00

17 lines
378 B
TypeScript

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>
)
}