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