import type { BalancePlugin } from '@web3-wallet/plugin-balance'; import type { EnsPlugin } from '@web3-wallet/plugin-ens'; import type { Wallet } from '@web3-wallet/react'; import React from 'react'; import { Account } from './Account'; import { Box } from './Box'; export const Accounts = ({ accounts, balances, ensNames, }: { accounts: ReturnType; balances: ReturnType; ensNames: ReturnType; }) => { if (!accounts || accounts.length === 0) { return ( Account: None ); } return ( <> {accounts.map((account, i) => ( {ensNames.data?.[i] && ( Name: {ensNames.data?.[i]} )} Account: Balance: {balances.data?.[i] ? `${balances.data[i]}` : balances.data?.[i] === 0 ? 0 : '--'} ))} ); };