import React, { useState } from "react"; import { Brain, CheckSquare, ChevronDown, ChevronUp } from "lucide-react"; export default function AgentTodoPanel({ todos = [], planningComplete, thinkNotes = [] }) { const [open, setOpen] = useState(true); if (!todos.length && !thinkNotes.length) return null; const done = todos.filter((t) => t.status === "done").length; return (
{open && (
{thinkNotes.slice(0, 2).map((n) => (

{n.thought}

{n.next_action && (

→ {n.next_action}

)}
))}
)}
); }