import React from "react"; import Address from "./Address"; import AddressLink from "./AddressLink"; import ENSName from "./ENSName"; import ENSNameLink from "./ENSNameLink"; type AddressOrENSNameProps = { address: string; ensName?: string; selectedAddress?: string; }; const AddressOrENSName: React.FC = ({ address, ensName, selectedAddress, }) => { return address === selectedAddress ? ( <> {ensName ? ( ) : (
)} ) : ( <> {ensName ? ( ) : ( )} ); }; export default React.memo(AddressOrENSName);