import React from "react"; import { NavLink } from "react-router-dom"; import TokenLogo from "./TokenLogo"; import { ResolvedAddressRenderer } from "../api/address-resolver/address-resolver"; import { UniswapV3PairMeta, UniswapV3TokenMeta, } from "../api/address-resolver/UniswapV3Resolver"; import { ChecksummedAddress } from "../types"; type UniswapV3PoolNameProps = { address: string; token0: UniswapV3TokenMeta; token1: UniswapV3TokenMeta; fee: number; linkable: boolean; dontOverrideColors?: boolean; }; const UniswapV3PairName: React.FC = ({ address, token0, token1, fee, linkable, dontOverrideColors, }) => { if (linkable) { return ( Uniswap V3 LP: / / {fee / 10000}% ); } return (
Uniswap V3 LP: / / {fee / 10000}%
); }; type ContentProps = { linkable: boolean; address: ChecksummedAddress; name: string; symbol: string; }; const Content: React.FC = ({ address, name, symbol, linkable, }) => ( <>
{symbol} ); export const uniswapV3PairRenderer: ResolvedAddressRenderer = (address, tokenMeta, linkable, dontOverrideColors) => ( ); export default UniswapV3PairName;