import * as React from 'react'; import { Div, Button, Image, Text, Avatar, Icon } from 'react-native-magnus'; import { useTranslation } from 'react-i18next'; import { FinancialType } from '../utils/MoneyUtils'; export default function ReacordCom({ info }) { const { t } = useTranslation(); const { name, amount, avatar, num, type, time } = info; const typeInfo = FinancialType.get(type); return (
{avatar ? ( ) : ( )}
{name} {typeInfo.backMoney ? typeInfo.backMoney(amount) : amount}
{time} {t(typeInfo.name)}
); }