import styles from './ResultRow.module.css' import { formatNumber } from '@/utils' import { ArrowRightIcon } from '@radix-ui/react-icons' import Image from 'next/image' type Props = { tokenSymbol: string tokenAddress: string amount: number amountAsi: number amountFiat: number amountOriginalFiat?: number } export function Result({ tokenSymbol, tokenAddress, amount, amountAsi, amountFiat, amountOriginalFiat }: Props) { return (
{tokenSymbol} {formatNumber(amount || 0, tokenSymbol)} {amountOriginalFiat ? ( {formatNumber(amountOriginalFiat || 0, 'USD')} ) : null}
{formatNumber(amountAsi || 0, 'ASI')} {formatNumber(amountFiat || 0, 'USD')}
) }