返回 DeepSeek-Reasonix
WorktreeBadge.tsx
根目录 / desktop / frontend / src / components / WorktreeBadge.tsx
1 import { GitBranch } from "lucide-react";
2 import { useT } from "../lib/i18n";
3
4 // Adapted from the lightweight worktree identity affordance proposed in #6119.
5 // One component keeps tabs, the topic bar, and the project tree consistent.
6 export function WorktreeBadge({ size = 12 }: { size?: number }) {
7 const t = useT();
8 const label = t("projectTree.isolatedWorktree");
9 return (
10 <span className="worktree-badge" title={label} aria-label={label}>
11 <GitBranch size={size} aria-hidden="true" />
12 </span>
13 );
14 }
15
15 lines Plain Text