import { Currency, TradeType } from "@uniswap/sdk-core"; import { Trade } from "@uniswap/v2-sdk"; import React, { Fragment, memo } from "react"; import { ChevronRight } from "react-feather"; import { Flex } from "rebass"; import useTheme from "../../hooks/useTheme"; import { TYPE } from "../../theme"; import { unwrappedToken } from "../../utils/unwrappedToken"; export default memo(function SwapRoute({ trade, }: { trade: Trade; }) { const tokenPath = trade.route.path; const theme = useTheme(); return ( {tokenPath.map((token, i, path) => { const isLastItem: boolean = i === path.length - 1; const currency = unwrappedToken(token); return ( {currency.symbol} {isLastItem ? null : } ); })} ); });