import React from 'react'; import { RefreshCw, Zap, Download } from 'lucide-react'; export default function PlanHeader({ executionPlan, stepResults, isRunningAll, executingStep, onRunAll, onReset, onExport, }) { const successCount = Object.values(stepResults).filter(r => r.analysis?.status === 'success').length; const pct = executionPlan.length > 0 ? Math.round((successCount / executionPlan.length) * 100) : 0; return (
Execution plan
{executionPlan.length} steps
{successCount} / {executionPlan.length} ok
{onExport && ( )}
); }