import React, {useState} from 'react' import { Link } from 'react-router-dom' import RecentActivityTable from './WalletComponent/RecentActivityTable' import PurchasesTable from './WalletComponent/PurchasesTable' import CouponTable from './WalletComponent/CouponTable' import LoadingSpinner from '../Spinners/LoadingSpinner' function Balance({wallet, payment, coupon, purchase}) { return (
{/* WALLET SECTION */}

Wallet

Add New Wallet

{/* wallet balance */} {wallet.loading ? : wallet.data.length ? wallet.data.map((item, index)=> (

Currency

{item.description}

{item.symbol}

balance

{item.symbol}{(item.amount*1).toFixed(2)}

Escrow

{item.symbol}{(item.escrow*1).toFixed(2)}
Transfer Top Up
)) : wallet.error ? (

Opps! An Error occurred, please try again

) : (

No Wallets Found!

) } {/* end of wallet balance */}
{/* END OF WALLET SECTION */} {/* RECENT ACTIVITY SECTION */}

Recent Activity

Activity Report

{payment.loading ? : }
{/* END OF RECENT ACTIVITY SECTION */}
{/* PURCHASE SECTION */}

Purchases

{purchase.loading ? : }
{/* END OF PURCHASE SECTION */} {/* COUPON SECTION */}

Coupons

{coupon.loading ? : }
{/* END OF COUPON SECTION */}
) } export default Balance