import React from 'react'; import { getTxnLink, getTransactionText } from '../util/utils'; function RecentTxnDropdown(props: any) { const data = props.data; const network = props.networkURL; return (

Recent Transactions

{ data.length === 0 &&

No recent transactions found.

} { data.map((item: { type: number, txnId: string }, index: number) =>
{ index === 0 &&

Latest

} { index === 1 &&

Others

}

{getTransactionText(item.type)}

Transaction ID
{item.txnId ? item.txnId : "N/A"}

)}
); } export default RecentTxnDropdown;