import { Link } from "react-router-dom"; import { useDroppable } from "@dnd-kit/core"; function TreeNode({ node, currentCardId, depth, onNavigate }) { const { isOver, setNodeRef } = useDroppable({ id: `card-${node._id}`, data: { type: "card", cardId: node._id } }); return (
  • {node.title} {node.children.length > 0 && ( )}
  • ); } export function SidebarTree({ roots, currentCardId, onNavigate }) { return ( ); }