import{j as s}from"./react.49d70ecd.js";import{r as e}from"./client.58f92968.js";import{aM as a,aY as t,cc as o,cA as l,p as r,cv as i,cm as p,cn as c,cy as n}from"./App.09743846.js";import"./index.3938ccd1.js";import"./Serializer.f6a5f515.js";import"./axios.65f6a2c9.js";import"./T3Data.cbe80363.js";import"./_commonjsHelpers.a5007c1f.js";var _="_nav_15kot_11",d="_header_15kot_27",x="_title_15kot_49",m="_collapseButton_15kot_73",j="_navList_15kot_123",h="_navItem_15kot_135",v="_navButton_15kot_143",b="_active_15kot_179",k="_iconWrapper_15kot_191",N="_label_15kot_221";const f=[{id:"files",label:"File Browser",icon:a,path:"/t3000/develop/files"},{id:"database",label:"Database",icon:t,path:"/t3000/develop/database"},{id:"transport",label:"Transport Message",icon:o,path:"/t3000/develop/transport"},{id:"logs",label:"T3000 Logs",icon:l,path:"/t3000/develop/logs"}],u=({isCollapsed:e,onToggleCollapse:a})=>{const t=r(),o=i();return s.exports.jsxs("nav",{className:_,children:[s.exports.jsxs("div",{className:d,children:[s.exports.jsx("h2",{className:x,children:!e&&"Developer Tools"}),s.exports.jsx("button",{className:m,onClick:a,title:e?"Expand panel":"Collapse panel",children:e?s.exports.jsx(p,{}):s.exports.jsx(c,{})})]}),s.exports.jsx("ul",{className:j,children:f.map((a=>{const l=a.icon,r=o.pathname===a.path;return s.exports.jsx("li",{className:h,children:s.exports.jsxs("button",{className:`${v} ${r?b:""}`,onClick:()=>{return s=a.path,void t(s);var s},title:e?a.label:void 0,children:[s.exports.jsx("span",{className:k,children:s.exports.jsx(l,{})}),!e&&s.exports.jsx("span",{className:N,children:a.label})]})},a.id)}))})]})};var g="_container_122im_11",C="_sidebar_122im_27",T="_collapsed_122im_49",$="_content_122im_59";const B=()=>{const[a,t]=e.exports.useState(!1);return s.exports.jsxs("div",{className:g,children:[s.exports.jsx("aside",{className:`${C} ${a?T:""}`,children:s.exports.jsx(u,{isCollapsed:a,onToggleCollapse:()=>t(!a)})}),s.exports.jsx("main",{className:$,children:s.exports.jsx(n,{})})]})};export{B as DevelopLayout,B as default};
