import React from "react"; import LinkTransaction from "component/linkTransaction"; import { CreditAmount } from "component/common"; const TransactionList = props => { const { emptyMessage, transactions } = props; if (!transactions || !transactions.length) { return (
{emptyMessage || __("No transactions to list.")}
); } return ( {transactions.map(item => { return ( ); })}
{__("Date")} {__("Amount")} {__("Transaction")}
{item.date ? item.date.toLocaleDateString() + " " + item.date.toLocaleTimeString() : {__("(Transaction pending)")} } {" "}
); }; export default TransactionList;