import { motion } from 'framer-motion' import { TrendingUp, Layers, Zap, Hexagon, Crosshair } from 'lucide-react' import { useNavigate } from 'react-router-dom' import { useAuth } from '../../../contexts/AuthContext' const agents = [ { name: 'ALPHA-1', // ... (rest of agents array remains, but I can't skip lines in replacement content easily without context. Wait, let's just replace the top section) // Actually, I'll use multi_replace for targeted cleanup. class: 'SCALPER', desc: 'High-frequency microstructure exploitation.', apy: '142%', winRate: '68%', risk: 'HIGH', color: 'text-nofx-gold', border: 'border-nofx-gold/50', bg_glow: 'shadow-[0_0_30px_rgba(240,185,11,0.1)]', icon: Zap, }, { name: 'BETA-X', class: 'SWING_OPS', desc: 'Multi-day trend extraction engine.', apy: '89%', winRate: '55%', risk: 'MED', color: 'text-blue-400', border: 'border-blue-400/30', bg_glow: 'shadow-[0_0_30px_rgba(96,165,250,0.1)]', icon: TrendingUp, }, { name: 'GAMMA-RAY', class: 'ARBITRAGE', desc: 'Low-risk spatial price equalization.', apy: '24%', winRate: '99%', risk: 'LOW', color: 'text-purple-400', border: 'border-purple-400/30', bg_glow: 'shadow-[0_0_30px_rgba(192,132,252,0.1)]', icon: Layers, }, ] export default function AgentGrid() { const { user } = useAuth() const navigate = useNavigate() const handleInitialize = () => { if (user) { navigate('/strategy-market') } else { navigate('/login') } } return (
{/* Background Details */}
MARKET SELECT

STRATEGY{' '} UNITS

SELECT AN AUTONOMOUS AGENT TO BEGIN DEPLOYMENT. UNITS ARE PRE-TRAINED ON HISTORICAL TICKS.
{/* Grid Container - Removing scroll tracking for stability test */}
{agents.map((agent, i) => { const Icon = agent.icon return ( {/* Top "Hinge" decoration */}
{/* Header */}
Class
{agent.class}
{/* Name & Desc */}

{agent.name}

{agent.desc}

{/* Stats Grid */}
APY
{agent.apy}
Win %
{agent.winRate}
Risk
{agent.risk}
{/* Action Btn */}
{/* Decorative Background Elements */}
) })}
) }