// @flow import * as MODALS from 'constants/modal_types'; import React from 'react'; import TxoListItem from './internal/txo-list-item'; import Spinner from 'component/spinner'; type Props = { emptyMessage: ?string, loading: boolean, openModal: (id: string, { tx: Txo, cb: string => void }) => void, rewards: {}, txos: Array, }; function TransactionListTable(props: Props) { const { emptyMessage, rewards, loading, txos } = props; const REVOCABLE_TYPES = ['channel', 'stream', 'repost', 'support', 'claim']; function revokeClaim(tx: any, cb: string => void) { props.openModal(MODALS.CONFIRM_CLAIM_REVOKE, { tx, cb }); } return ( {!loading && !txos.length &&

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

} {loading && (

)} {!loading && !!txos.length && (
{txos && txos.map((t, i) => ( ))}
{__('Date')} {<>{__('Type')}} {__('Details')} {__('Transaction')} {__('Amount (LBC)')}
)}
); } export default TransactionListTable;