import React from "react"; import { NavLink } from "react-router-dom"; import TokenLogo from "./TokenLogo"; import { ResolvedAddressRenderer } from "../api/address-resolver/address-resolver"; import { UniswapV2PairMeta, UniswapV2TokenMeta, } from "../api/address-resolver/UniswapV2Resolver"; import { ChecksummedAddress } from "../types"; type UniswapV2PairNameProps = { chainId: number; address: string; token0: UniswapV2TokenMeta; token1: UniswapV2TokenMeta; linkable: boolean; dontOverrideColors?: boolean; }; const UniswapV2PairName: React.FC = ({ chainId, address, token0, token1, linkable, dontOverrideColors, }) => { if (linkable) { return ( Uniswap V2 LP: / ); } return (
Uniswap V2 LP: /
); }; type ContentProps = { chainId: number; address: ChecksummedAddress; name: string; symbol: string; linkable?: boolean; }; const Content: React.FC = ({ chainId, address, name, symbol, linkable, }) => ( <>
{symbol} ); export const uniswapV2PairRenderer: ResolvedAddressRenderer< UniswapV2PairMeta > = (chainId, address, tokenMeta, linkable, dontOverrideColors) => ( ); export default UniswapV2PairName;