The best way to control Claude Code, Codex and more from any computer or phone

main
tsx 22 lines 644 Bytes
Raw
1 import { T } from "gt-react";
2 import { HistoryIcon } from "lucide-react";
3
4 import { MiddleTruncate } from "./ui/middle-truncate";
5
6 export function PreviousWorktreeItemContent({ branch }: { branch: string | null }) {
7 return (
8 <span className="flex min-w-0 items-start gap-1.5">
9 <HistoryIcon className="mt-1 size-3" />
10 <span className="flex min-w-0 flex-col">
11 <span>
12 <T>Previous worktree</T>
13 </span>
14 {branch ? (
15 <span className="min-w-0 text-xs text-muted-foreground">
16 <MiddleTruncate value={branch} />
17 </span>
18 ) : null}
19 </span>
20 </span>
21 );
22 }