import{c as l,r as c,j as e}from"./index-6aWWvyNc.js";import{b as i}from"./Navigation-KKUTSq3z.js";/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const h=l("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),u=({items:o})=>{const[t,a]=c.useState(!1),d=(s,r)=>{s.preventDefault();const n=document.getElementById(r);n&&(n.scrollIntoView({behavior:"smooth",block:"start"}),window.history.pushState(null,"",`#${r}`))};return e.jsxs("div",{className:"bg-muted/30 border border-border rounded-lg p-6 my-8 max-w-2xl",children:[e.jsxs("button",{onClick:()=>a(!t),className:"md:hidden flex items-center justify-between w-full text-left mb-2","aria-expanded":t,children:[e.jsx("h3",{className:"text-sm font-bold uppercase tracking-wide text-foreground/70",children:"In This Guide"}),t?e.jsx(h,{className:"h-5 w-5 text-foreground/70"}):e.jsx(i,{className:"h-5 w-5 text-foreground/70"})]}),e.jsx("h3",{className:"hidden md:block text-sm font-bold uppercase tracking-wide text-foreground/70 mb-4",children:"In This Guide"}),e.jsx("ul",{className:`space-y-2 ${t?"block":"hidden"} md:block`,children:o.map(s=>e.jsx("li",{children:e.jsxs("a",{href:`#${s.id}`,onClick:r=>d(r,s.id),className:"text-foreground/80 hover:text-brand-red transition-colors flex items-start group",children:[e.jsx("span",{className:"text-brand-red mr-2 group-hover:font-bold",children:"•"}),e.jsx("span",{className:"group-hover:underline",children:s.title})]})},s.id))})]})};export{u as T};