// @flow import * as MODALS from 'constants/modal_types'; import React from 'react'; import TransactionListItem from './internal/transaction-list-item'; type Props = { emptyMessage: ?string, loading: boolean, mySupports: {}, myClaims: any, openModal: (id: string, { nout: number, txid: string }) => void, rewards: {}, transactionList: Array, }; function TransactionListTable(props: Props) { const { emptyMessage, rewards, loading, transactionList } = props; function isRevokeable(txid: string, nout: number) { const outpoint = `${txid}:${nout}`; const { mySupports, myClaims } = props; return !!mySupports[outpoint] || myClaims.has(outpoint); } function revokeClaim(txid: string, nout: number) { props.openModal(MODALS.CONFIRM_CLAIM_REVOKE, { txid, nout }); } return ( {!loading && !transactionList.length && (

{emptyMessage || __('No transactions.')}

)} {!!transactionList.length && ( {transactionList.map(t => ( ))}
{__('Date')} {__('Type')} {__('Details')} {__('Transaction')} {__('Amount')}
)}
); } export default TransactionListTable;