import { useTranslation } from 'react-i18next'; import { TextInput, View } from 'react-native'; import LinearGradient from 'react-native-linear-gradient'; import { Button, Icon, Text } from '../../../components'; import { tw, useTheme } from '../../../core'; import { InfoTooltip } from './InfoTooltip'; interface TotalCostProps { price: number; onCalculate?: () => void; } export function TotalCost({ onCalculate, price }: TotalCostProps) { const { t } = useTranslation(); const { background, backgroundSemiLight } = useTheme(); const totalPrice = (price + 1.5).toLocaleString(); return ( {t`marketplace.estimatedGasFees`} {t`marketplace.estimatedTaxes`} {t`marketplace.estimatedShippingCost`} {t`marketplace.totalSellingPrice`} $ {totalPrice} ); }