import { cn, pressable, text } from '@/styles/theme';
import { useCallback, useMemo } from 'react';
import { useIcon } from '../../hooks/useIcon';
import { formatFiatAmount } from '../../utils/formatFiatAmount';
import { truncateDecimalPlaces } from '../../utils/truncateDecimalPlaces';
import { Skeleton } from '../Skeleton';
type SelectedInputType = 'fiat' | 'crypto';
type AmountInputTypeSwitchProps = {
selectedInputType: SelectedInputType;
setSelectedInputType: (type: SelectedInputType) => void;
asset: string;
fiatAmount: string;
cryptoAmount: string;
exchangeRate: number;
exchangeRateLoading: boolean;
loadingDisplay?: React.ReactNode;
currency: string;
className?: string;
};
export function AmountInputTypeSwitch({
selectedInputType,
setSelectedInputType,
asset,
fiatAmount,
cryptoAmount,
exchangeRate,
exchangeRateLoading,
currency,
loadingDisplay =