import{h as c,i as r,j as i,dd as o}from"./app-BgLa5dit.js";import{C as l}from"./BfMtaC_g.chunk.js";const p={getClipsTabs(e,a){const s=r.CLIPS,t=c.Clips;let n=[];return l.hasSubjectsAccess(e)&&(n=n.concat([{label:"Preview clip",appLink:{application:s,action:t.PREVIEW_CLIP,args:[a]}},{label:"Edit clip details",appLink:{application:s,action:t.EDIT_CLIP_DETAILS,args:[a]}},{label:"Glance / POI",appLink:{application:s,action:t.EDIT_CLIP_GLANCE,args:[a]}},{label:"Curation",appLink:{application:s,action:t.EDIT_CLIP_CURATION,args:[a]}},{label:"Topics",appLink:{application:s,action:t.EDIT_CLIP_CLASSIFICATIONS,args:[a]}},{label:"Audiences",appLink:{application:s,action:t.EDIT_CLIP_AUDIENCES,args:[a]}},{label:"Tags",appLink:{application:s,action:t.EDIT_CLIP_TAGS,args:[a]}},{label:"Resources",appLink:{application:s,action:t.EDIT_CLIP_RESOURCES,args:[a]}},{label:"Interactives",appLink:{application:s,action:t.EDIT_CLIP_INTERACTIVES,args:[a]}}])),n}},C=e=>a=>a.appLink.action===e;function T(e){const a=p.getClipsTabs(e.currentUser,e.clipId);return a.length<2?i.jsx(i.Fragment,{}):i.jsx("div",{className:"py-2",children:i.jsx(o,{tabs:a,isItemActive:C(e.activeAction)})})}export{T as E};
//# sourceMappingURL=kJGoOu-N.chunk.js.map
