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