import{j as i,Y as t,h as a,i as e,a3 as p}from"./app-BgLa5dit.js";import{u as r}from"./CKjyFQLY.chunk.js";const l="_appLink_1smoy_1",d={appLink:l},k=s=>({application:e.WORKBENCH,action:a.Workbench.WORKBENCH,args:[s]});function h(s){const{workingLists:c}=r(s.activeListId);function o(n){return[{label:"Rename list",appLink:{application:e.WORKBENCH,action:a.Workbench.RENAME_WORKBENCH,args:[n.id]}},{label:"Copy list",appLink:{application:e.WORKBENCH,action:a.Workbench.COPY_WORKBENCH,args:[n.id]}},{label:"Delete list",className:"text-danger",appLink:{application:e.WORKBENCH,action:a.Workbench.DELETE_WORKBENCH,args:[n.id]}}]}return i.jsxs("div",{className:"vh-100 pe-2 border-end",children:[i.jsx("p",{className:"m-0 pb-2 text-secondary",children:i.jsx("strong",{children:"Workbench Collections"})}),i.jsx("nav",{children:c.map(n=>i.jsxs("div",{className:`d-flex justify-content-between align-items-center rounded px-2 ${d.appLink}`,children:[i.jsx(t,{appLink:k(n.id),className:`py-2 w-100 ${s.activeListId.toString()===n.id.toString()?"fw-semibold":""}`,children:i.jsx("span",{children:n.name})},n.id),i.jsx(p,{actions:o(n)})]}))}),i.jsx(t,{className:"d-block mt-3",appLink:{application:e.WORKBENCH,action:a.Workbench.CREATE_WORKBENCH},children:"+ Create a new list"})]})}export{h as WorkbenchNav};
//# sourceMappingURL=BmNVOuYM.chunk.js.map
