import React from "react"; import { NavLink } from "react-router-dom"; import TokenLogo from "./TokenLogo"; import { ResolvedAddressRenderer } from "../api/address-resolver/address-resolver"; import { TokenMeta } from "../types"; type TokenNameProps = { address: string; name: string; symbol: string; linkable: boolean; dontOverrideColors?: boolean; }; const TokenName: React.FC = ({ address, name, symbol, linkable, dontOverrideColors, }) => { if (linkable) { return ( ); } return (
); }; type ContentProps = { address: string; name: string; symbol: string; linkable: boolean; }; const Content: React.FC = ({ address, name, symbol, linkable, }) => ( <>
{name} ({symbol}) ); export const tokenRenderer: ResolvedAddressRenderer = ( address, tokenMeta, linkable, dontOverrideColors ) => ( ); export default TokenName;