+ {isLoading ? (
- >
- ) : (
- <>
- {/* Terminal Worktrees Section */}
- {worktrees.length > 0 && (
- <>
-
-
- {t('terminal:worktree.existing')}
-
- {worktrees.map((wt) => (
- {
- e.stopPropagation();
- setIsOpen(false);
- onSelectWorktree(wt);
- }}
- className="text-xs group"
- >
-
-
- {wt.name}
- {wt.branchName && (
-
- {wt.branchName}
-
- )}
-
-
-
- ))}
- >
- )}
+
+
+ {wt.name}
+ {wt.branchName && (
+
+ {wt.branchName}
+
+ )}
+
+
+
+ ))}
+ >
+ )}
- {/* Task Worktrees Section */}
- {taskWorktrees.length > 0 && (
- <>
-
-
- {t('terminal:worktree.taskWorktrees')}
-
- {taskWorktrees.map((wt) => (
- {
- e.stopPropagation();
- setIsOpen(false);
- selectTaskWorktree(wt);
- }}
- className="text-xs group"
- >
-
-
- {wt.specName}
- {wt.branch && (
-
- {wt.branch}
-
- )}
-
-
- ))}
- >
- )}
- >
- )}
+ {/* Task Worktrees Section */}
+ {taskWorktrees.length > 0 && (
+ <>
+
+
+ {t('terminal:worktree.taskWorktrees')}
+
+ {taskWorktrees.map((wt) => (
+ {
+ e.stopPropagation();
+ setIsOpen(false);
+ selectTaskWorktree(wt);
+ }}
+ className="text-xs group"
+ >
+
+
+ {wt.specName}
+ {wt.branch && (
+
+ {wt.branch}
+
+ )}
+
+
+ ))}
+ >
+ )}
+ >
+ )}
+