var K=Object.defineProperty;var L=(f)=>f;function N(f,q){this[f]=L.bind(null,q)}var X=(f,q)=>{for(var A in q)K(f,A,{get:q[A],enumerable:!0,configurable:!0,set:N.bind(q,A)})};var Y=(f,q)=>()=>(f&&(q=f(f=0)),q);import{Sidebar as O,SidebarContent as P,SidebarFooter as Q,SidebarHeader as T,SidebarMenu as U,SidebarMenuButton as E,SidebarMenuItem as G,SidebarRail as V}from"@contractspec/lib.ui-kit-web/ui/sidebar";import{Settings as W}from"lucide-react";import{jsx as y,jsxs as D}from"react/jsx-runtime";function k({modules:f,activeModuleId:q,onModuleChange:A,sidebarFooter:J}){return D(O,{children:[y(V,{}),y(T,{}),y(P,{children:D(U,{children:[f.map((z)=>y(G,{children:D(E,{isActive:z.id===q,onClick:()=>A(z.id),children:[z.icon,y("span",{children:z.label}),z.badge!=null?y("span",{className:"ml-auto text-muted-foreground text-xs",children:String(z.badge)}):null]})},z.id)),y(G,{children:D(E,{isActive:q==="settings",onClick:()=>A("settings"),children:[y(W,{className:"size-4"}),y("span",{children:"Settings"})]})})]})}),y(Q,{children:J})]})}export{k as WorkspaceSidebar};
