import"./rolldown-runtime-B1FJdls4.js";import{m as e}from"./vendor-dnd-C1cICjTT.js";import{s as t}from"./vendor-markdown-Db1-9wH7.js";e();var n=t();function r({mode:e,onChange:t,onCreateFolder:r,className:i=``}){return(0,n.jsxs)(`div`,{className:`flex items-center gap-1 ${i}`.trim(),"data-sidebar-session-view-controls":`true`,children:[(0,n.jsxs)(`div`,{className:`flex min-w-0 flex-1 rounded-lg border border-terminal-border/35 bg-terminal-bg/40 p-0.5 normal-case tracking-normal`,children:[(0,n.jsx)(`button`,{type:`button`,onClick:()=>t(`recent`),className:`flex-1 rounded-md px-2 py-1 text-[10px] font-mono transition-colors ${e===`recent`?`bg-terminal-cyan/15 text-terminal-cyan shadow-sm`:`text-terminal-muted hover:bg-terminal-border/25 hover:text-terminal-text`}`,"aria-pressed":e===`recent`,title:`Show sessions in chronological timeline order`,children:`Recent`}),(0,n.jsx)(`button`,{type:`button`,onClick:()=>t(`folders`),className:`flex-1 rounded-md px-2 py-1 text-[10px] font-mono transition-colors ${e===`folders`?`bg-terminal-purple/15 text-terminal-purple shadow-sm`:`text-terminal-muted hover:bg-terminal-border/25 hover:text-terminal-text`}`,"aria-pressed":e===`folders`,title:`Show work-in-progress session folders`,children:`Folders`})]}),e===`folders`&&r?(0,n.jsx)(`button`,{type:`button`,onClick:r,className:`flex h-7 w-7 shrink-0 items-center justify-center rounded-md border border-terminal-border/40 text-terminal-muted hover:border-terminal-cyan/55 hover:bg-terminal-cyan/10 hover:text-terminal-cyan`,title:`Create session folder`,"aria-label":`Create session folder`,"data-sidebar-create-topic-folder":`true`,children:`+`}):null]})}export{r as t};