{/* Actions menu for active notebook */}
setEditingNotebook(notebook)}
onDelete={() => setDeletingNotebook(notebook)}
onSummary={() => setSummaryNotebook(notebook)}
/>
{/* Contextual Labels Tree */}
{isExpanded && (
{labels.length === 0 ? (
{t('sidebar.noLabelsInNotebook')}
) : (
labels.map((label: any) => (
))
)}
)}
) : (
// Inactive notebook
handleDrop(e, notebook.id)}
onDragOver={(e) => handleDragOver(e, notebook.id)}
onDragLeave={handleDragLeave}
className={cn(
"flex items-center relative",
isDragOver && "ring-2 ring-blue-500 ring-dashed rounded-e-full me-2"
)}
>
{notebook.name}
{/* Actions + expand on the right — always rendered, visible on hover */}