import React from 'react'; const TASK_OPTIONS = [ { value: 'easy', label: 'Easy — Monday Morning', color: '#22c55e' }, { value: 'medium', label: 'Medium — Demo Day Prep', color: '#f59e0b' }, { value: 'hard', label: 'Hard — Series B Crisis', color: '#ef4444' }, ]; export default function SimulationControls({ taskId, currentTime, currentStep, maxSteps, totalReward, done, onReset, onTaskChange, loading, isAutoRunning, onAutoRun, }) { const progressPct = maxSteps > 0 ? (currentStep / maxSteps) * 100 : 0; const task = TASK_OPTIONS.find(t => t.value === taskId) || TASK_OPTIONS[0]; return (
{/* ── Left: brand + task ── */}
ExecOps AI CEO Simulation
{/* ── Center: time + steps ── */}
CEO TIME {currentTime}
STEPS {currentStep} / {maxSteps}
= 100 ? '#22c55e' : `linear-gradient(90deg, #3b82f6, #8b5cf6)`, }} />
REWARD = 0 ? '#22c55e' : '#ef4444' }} > {totalReward >= 0 ? '+' : ''}{totalReward.toFixed(3)}
{/* ── Right: auto-run + status ── */}
{/* Auto-run button */}
{done ? '✓ COMPLETE' : isAutoRunning ? '◈ AI RUNNING' : '● READY'}
); }