import Card from 'components/Card' import FormattedNumber from 'components/FormattedNumber' import Text from 'components/Text' const mockedAccounts = [ { id: 1, label: 'Account 1', networth: 100000, totalPositionValue: 150000, debt: 50000, profit: 25000, leverage: 3, maxLeverage: 5, }, { id: 2, label: 'Account 2', networth: 33000, totalPositionValue: 11000, debt: 20000, profit: -11366, leverage: 2, maxLeverage: 10, }, { id: 3, label: 'Account 3', networth: 0, totalPositionValue: 12938129, debt: 9999999999, profit: -99999999, leverage: 3, maxLeverage: 5, }, { id: 4, label: 'Account 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}
Net worth
Total Position Value
Debt
0 ? 'text-green-400' : 'text-red-500'}> 0 ? '+$' : '$'} /> P&L
Current Leverage
Max Leverage
))}
) } export default Portfolio