Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

PreviousWorktreeItemContent.tsx

22 lines644 Bytes

1import { T } from "gt-react";
2import { HistoryIcon } from "lucide-react";
3​
4import { MiddleTruncate } from "./ui/middle-truncate";
5​
6export 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 );