/* eslint-disable react/prop-types */ import React from 'react'; import { View } from 'react-native'; import { useStyles } from '../../hooks'; import AccountAvatar from '../AccountAvatar'; import BaseText, { BaseTextVariant } from '../BaseText'; import PickerItem from '../PickerItem'; import styleSheet from './PickerAccount.styles'; import { PickerAccountProps } from './PickerAccount.types'; import { BaseAvatarSize } from '../BaseAvatar'; import { formatAddress } from '../../../util/address'; const PickerAccount = ({ style, accountAddress, accountName, accountAvatarType, ...props }: PickerAccountProps) => { const { styles } = useStyles(styleSheet, { style }); const shortenedAddress = formatAddress(accountAddress, 'short'); const renderCellAccount = () => ( {accountName} {shortenedAddress} ); return ( {renderCellAccount()} ); }; export default PickerAccount;