import{aJ as n,h as r,i as I,j as c,dd as o}from"./app-BgLa5dit.js";import{C as p}from"./BfMtaC_g.chunk.js";const u={getInteractivesTabs(a,s){const e=I.INTERACTIVES,i=r.Interactives;if(!p.hasSubjectsAccess(a))return[];const t=[];return s.status!==n.Draft?t.push({label:"Preview Interactive",appLink:{application:e,action:i.PREVIEW_INTERACTIVE,args:[s.id]}}):t.push({label:"Edit Interactive",appLink:{application:e,action:i.EDIT_INTERACTIVE,args:[s.id]}}),t.push({label:"Curation",appLink:{application:e,action:i.EDIT_INTERACTIVE_CURATION,args:[s.id]},disabled:s.status===n.Draft}),t.push({label:"Topics",appLink:{application:e,action:i.EDIT_INTERACTIVE_CLASSIFICATIONS,args:[s.id]},disabled:s.status===n.Draft}),t.push({label:"Audiences",appLink:{application:e,action:i.EDIT_INTERACTIVE_AUDIENCES,args:[s.id]},disabled:s.status===n.Draft}),t}},E=a=>s=>s.appLink.action===a;function d(a){const s=u.getInteractivesTabs(a.currentUser,a.interactive);return s.length<2?c.jsx(c.Fragment,{}):c.jsx("div",{className:"py-2",children:c.jsx(o,{tabs:s,isItemActive:E(a.activeAction)})})}export{d as E};
//# sourceMappingURL=DAIT4p5u.chunk.js.map
