mirror of
https://github.com/kremalicious/asi-calculator.git
synced 2024-12-23 01:39:40 +01:00
17 lines
378 B
TypeScript
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>
|
|
)
|
|
}
|