import React from "react"; import InternalTransfer from "./InternalTransfer"; import InternalSelfDestruct from "./InternalSelfDestruct"; import InternalCreate from "./InternalCreate"; import { TransactionData, InternalOperation, OperationType } from "../types"; type InternalTransactionOperationProps = { txData: TransactionData; internalOp: InternalOperation; }; const InternalTransactionOperation: React.FC = ({ txData, internalOp }) => ( <> {internalOp.type === OperationType.TRANSFER && ( )} {internalOp.type === OperationType.SELF_DESTRUCT && ( )} {(internalOp.type === OperationType.CREATE || internalOp.type === OperationType.CREATE2) && ( )} ); export default React.memo(InternalTransactionOperation);