import { useI18N } from '../../../utils' ; import { useAccount , isSameAddress } from '@masknet/web3-shared-evm' ; export interface AccountProps { address ? : string ; username ? : string ; } export function Account ( { address , username } ) { const { t } = useI18N ( ) ; const account = useAccount ( ) ; return < > { isSameAddress ( account , address ?? '' ) ? t ( 'plugin_collectible_you' ) : username || address ?. slice ( 2 , 8 ) } < />; }