import React from "react"; import { formatEther } from "@ethersproject/units"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faAngleRight } from "@fortawesome/free-solid-svg-icons/faAngleRight"; import AddressHighlighter from "./AddressHighlighter"; import DecoratedAddressLink from "./DecoratedAddressLink"; import { TransactionData, InternalOperation } from "../types"; type InternalTransferProps = { txData: TransactionData; internalOp: InternalOperation; }; const InternalTransfer: React.FC = ({ txData, internalOp, }) => { const fromMiner = txData.confirmedData?.miner !== undefined && internalOp.from === txData.confirmedData.miner; const toMiner = txData.confirmedData?.miner !== undefined && internalOp.to === txData.confirmedData.miner; return (
TRANSFER {formatEther(internalOp.value)} Ether
From
To
); }; export default InternalTransfer;