+ {editingId === mb.id ? (
+
+ setEditingName(e.target.value)}
+ onKeyDown={(e) => {
+ if (e.key === 'Enter') handleRename(mb.id);
+ if (e.key === 'Escape') cancelEdit();
+ }}
+ className="flex-1 px-2 py-1 text-sm rounded border border-border bg-background text-foreground focus:outline-none focus:ring-2 focus:ring-ring"
+ autoFocus
+ disabled={isLoading}
+ />
+
+
+
+ ) : deletingId === mb.id ? (
+
+
+ {t('confirm_delete', { name: mb.name })}
+
+
+
+
+ ) : (
+ <>
+
+ {mb.name}
+ {mb.role && (
+
+ {mb.role}
+
+ )}
+
+
+ {mb.myRights?.mayRename && (
+
+ )}
+ {mb.myRights?.mayDelete && !mb.role && (
+
+ )}
+
+ >
+ )}
+