import"./components.client.df015f1b.js";import{h as a,F as i}from"./entry.30e55a5e.js";function m(s,r,l){const c=s.lastIndexOf("/"),u=s.substring(0,c);l=l||{};const t=["nav nav-pills"];switch(l.direction){case"vertical":t.push("flex-column");break}let e=[];l.prevLink&&(e=a("li",{class:"nav-item"},[a(i,{class:"nav-link",to:u},{default:()=>[a("i",{class:"fa fa-arrow-left"})]})]));const f=n=>n.length===0?s:n.substring(0,1)==="/"?`${s}${n}`:`${s}/${n}`;return a("ul",{class:t},[e,...r.map(n=>a("li",{class:"nav-item"},[a(i,{class:"nav-link",to:f(n.urlSuffix)},{default:()=>[a("i",{class:`${n.icon} pe-1`}),n.name]})]))])}export{m as b};
