import React from 'react' import Container from 'components/Container' import { formatCurrency } from 'utils/formatters' const mockedAccounts = [ { id: 1, label: 'Subaccount 1', networth: 100000, totalPositionValue: 150000, debt: 50000, profit: 25000, leverage: 3, maxLeverage: 5, }, { id: 2, label: 'Subaccount 2', networth: 33000, totalPositionValue: 11000, debt: 20000, profit: -11366, leverage: 2, maxLeverage: 10, }, { id: 3, label: 'Subaccount 3', networth: 0, totalPositionValue: 12938129, debt: 9999999999, profit: -99999999, leverage: 3, maxLeverage: 5, }, { id: 4, label: 'Subaccount 4', networth: 33653.22, totalPositionValue: 100000, debt: 50001.9, profit: 25000, leverage: 3, maxLeverage: 5, }, ] const Portfolio = () => { return (
Portfolio Module
{mockedAccounts.map((account) => (

{account.label}

{formatCurrency(account.networth)}

Net worth

{formatCurrency(account.totalPositionValue)}

Total Position Value

{formatCurrency(account.debt)}

Debt

0 ? 'text-green-400' : 'text-red-500'}`}> {account.profit > 0 && '+'} {formatCurrency(account.profit)}

P&L

{account.leverage}

Current Leverage

{account.maxLeverage}

Max Leverage

))}
) } export default Portfolio