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 isLoading: boolean } export function Result({ token, amount, amountAsi, amountFiat, amountOriginalFiat, isValidating, isLoading }: Props) { const feedbackClasses = isLoading ? 'isLoading' : isValidating ? 'isValidating' : '' return (
{formatNumber(amount || 0, token?.symbol || '')}
{amountOriginalFiat ? ({formatNumber(amountOriginalFiat || 0, 'USD')}
) : null}{formatNumber(amountAsi || 0, 'ASI')}
{formatNumber(amountFiat || 0, 'USD')}