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; text?: string; }; const AddressOrENSName: React.FC = ({ address, ensName, selectedAddress, text, }) => ( <> {address === selectedAddress ? ( <> {ensName ? ( ) : (
)} ) : ( <> {ensName ? ( ) : ( )} )} ); export default React.memo(AddressOrENSName);