function BetModal({ pick, onClose }) { if (!pick) return null; const isParlay = Array.isArray(pick.legs) && pick.legs.length > 0; return (

Bet Details

{isParlay ? (
{pick.legs.map((leg, i) => (
{leg.selection} {leg.odds != null && ( ({signOdds(Number(leg.odds))}) )}
{leg.league} - {leg.event}
))}
) : (
{pick.selection} {pick.odds != null && ( ({signOdds(Number(pick.odds))}) )}
{pick.league} - {pick.event}
)}
Stake: {dollars(pick.stake)}
Status:{" "} {pick.status || pick.state || "open"}
); } window.BetModal = BetModal;