"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),c=require("../ui/button.cjs.js"),l=require("lucide-react");function a({branch:o,branchOptions:n,onSelect:s,isLoading:i}){if(n.length<=1)return null;const e=n.indexOf(o);if(e===-1)return null;const r=n.length;return t.jsxs("div",{className:"flex items-center gap-2 text-xs text-zinc-500",children:[t.jsx(c.Button,{variant:"ghost",size:"icon",className:"size-6 p-1 h-6 w-6 hover:bg-zinc-800 hover:text-zinc-300",onClick:()=>s(n[e-1]),disabled:i||e===0,title:"Previous response",children:t.jsx(l.ChevronLeft,{className:"h-4 w-4"})}),t.jsxs("span",{className:"text-xs text-zinc-400 font-medium min-w-[3rem] text-center",children:[e+1," / ",r]}),t.jsx(c.Button,{variant:"ghost",size:"icon",className:"size-6 p-1 h-6 w-6 hover:bg-zinc-800 hover:text-zinc-300",onClick:()=>s(n[e+1]),disabled:i||e===r-1,title:"Next response",children:t.jsx(l.ChevronRight,{className:"h-4 w-4"})})]})}exports.BranchSwitcher=a;
//# sourceMappingURL=BranchSwitcher.cjs.js.map
