"use client"; import { useCallback } from "react"; import { Bot, Plus } from "lucide-react"; import { useCouncilStore } from "@/app/store/council-store"; // Sidebar panel — drag or click to add agent nodes to the canvas export function NodeSidebar() { const addAgentNode = useCouncilStore((s) => s.addAgentNode); const onDragStart = useCallback( (event: React.DragEvent) => { event.dataTransfer.setData("application/reactflow", "agentNode"); event.dataTransfer.effectAllowed = "move"; }, [] ); const handleAddClick = useCallback(() => { // Add node at a reasonable default position near the center addAgentNode({ x: 200 + Math.random() * 200, y: 100 + Math.random() * 200 }); }, [addAgentNode]); return ( ); }