import styles from './ResultRow.module.css' import { formatNumber } from '@/utils' import { ArrowRightIcon } from '@radix-ui/react-icons' import { TokenLogo } from '../TokenLogo/TokenLogo' import { Token } from '@/types' type Props = { token: Token | undefined amount: number amountAsi: number amountFiat: number amountOriginalFiat?: number isValidating: boolean } export function Result({ token, amount, amountAsi, amountFiat, amountOriginalFiat, isValidating }: Props) { return (
{formatNumber(amount || 0, token?.symbol || '')} {amountOriginalFiat ? ( {formatNumber(amountOriginalFiat || 0, 'USD')} ) : null}
{formatNumber(amountAsi || 0, 'ASI')} {formatNumber(amountFiat || 0, 'USD')}
) }