import React from "react"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faCaretRight } from "@fortawesome/free-solid-svg-icons"; import AddressHighlighter from "./components/AddressHighlighter"; import DecoratedAddressLink from "./components/DecoratedAddressLink"; import TokenLogo from "./components/TokenLogo"; import FormattedBalance from "./components/FormattedBalance"; import { AddressContext, 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);