import React from "react"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faCaretRight } from "@fortawesome/free-solid-svg-icons/faCaretRight"; import TransactionAddress from "./components/TransactionAddress"; import ValueHighlighter from "./components/ValueHighlighter"; import FormattedBalance from "./components/FormattedBalance"; import { AddressContext, ChecksummedAddress, TokenMeta, TokenTransfer, } from "./types"; import { ResolvedAddresses } from "./api/address-resolver"; import { Metadata } from "./useSourcify"; type TokenTransferItemProps = { t: TokenTransfer; tokenMeta?: TokenMeta | null | undefined; resolvedAddresses: ResolvedAddresses | undefined; metadatas: Record; }; // TODO: handle partial const TokenTransferItem: React.FC = ({ t, tokenMeta, resolvedAddresses, metadatas, }) => (
From
To
For
); export default React.memo(TokenTransferItem);