import { GitBranch } from "lucide-react"; import { cn } from "@/lib/utils"; import type { ChatConversation } from "@paperclipai/shared"; interface ChatBranchSelectorProps { conversationId: string; branches: ChatConversation[]; activeBranchId: string | null; onSelectBranch: (id: string) => void; } function formatDate(dateStr: string): string { return new Date(dateStr).toLocaleDateString(undefined, { month: "short", day: "numeric" }); } export function ChatBranchSelector({ conversationId, branches, activeBranchId, onSelectBranch, }: ChatBranchSelectorProps) { if (branches.length === 0) return null; return (