import React, { FunctionComponent } from "react"; import { ExternalLink } from "react-feather"; import { makeAddressURL } from "../../utils"; interface AddressBookTableRowProps { onAddressSelect: () => void; address: string; isLocal: boolean; name: string; network?: string; source?: string; } interface AddressBookEtherscanLinkProps { address: string; network: string; } const AddressBookEtherscanLink: FunctionComponent< AddressBookEtherscanLinkProps > = ({ address, network }) => { const addressHref = makeAddressURL(address, network); return ( ); }; export const AddressBookTableRow: FunctionComponent< AddressBookTableRowProps > = ({ onAddressSelect, isLocal, address, name, network, source }) => { return (
{name}
{address}
{!isLocal && source}
{network && (
)}
); }; interface AddressBookTableRowEmptyProps { message: string; } export const AddressBookTableRowEmpty: FunctionComponent< AddressBookTableRowEmptyProps > = ({ message }) => { return (

{message}

); };