import { XCircle } from 'lucide-react'; export default function PositionPanel({ positions }) { if (!positions || positions.length === 0) { return (
No open positions
); } return (
Ticket
Type
Vol
Open
Current
P&L
Action
{positions.map(pos => { const isProfit = pos.profit >= 0; return (
#{pos.ticket}
{pos.type.toUpperCase()}
{pos.volume}
{pos.price_open.toFixed(2)}
{pos.price_current.toFixed(2)}
{pos.profit > 0 ? '+' : ''}{pos.profit.toFixed(2)}
); })}
); }