"use client"; import { Shield, Eye, Wrench, SkipForward, Brain, Cpu, Square, Sparkles } from "lucide-react"; import type { ActionType, AutoPolicy } from "../lib/types"; const ACTIONS: { id: ActionType; label: string; icon: typeof Shield }[] = [ { id: "delegate", label: "Delegate", icon: Shield }, { id: "verify", label: "Verify", icon: Eye }, { id: "solve_independently", label: "Self Solve", icon: Wrench }, { id: "skip", label: "Skip", icon: SkipForward }, ]; export default function ActionCenter({ recommended, running, done, onStep, onAutoRun, onStop, }: { recommended: { action: ActionType; specialist: string; trust: number }; running: boolean; done: boolean; onStep: (action: ActionType) => void; onAutoRun: (policy: AutoPolicy) => void; onStop: () => void; }) { return ( <>
{ACTIONS.map((a) => { const isRec = a.id === recommended.action; return ( ); })}
{running ? ( ) : ( <> )}
); }