import React from "react"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faCaretRight } from "@fortawesome/free-solid-svg-icons"; import AddressLink from "./components/AddressLink"; import TokenLogo from "./components/TokenLogo"; import FormattedBalance from "./components/FormattedBalance"; import { TokenMetas, TokenTransfer } from "./types"; type TokenTransferItemProps = { t: TokenTransfer; tokenMetas: TokenMetas; }; const TokenTransferItem: React.FC = ({ t, tokenMetas, }) => (
From To For {tokenMetas[t.token] ? ( <>
) : ( )}
); export default React.memo(TokenTransferItem);