import{b as r,j as e,dd as S,h as a,dl as n}from"./app-BgLa5dit.js";const A=t=>s=>{if(!t)return s.appLink.action===a.Subjects.EDIT_CLASSIFICATION;switch(t){case n.Tags:return s.appLink.action===a.Subjects.EDIT_CLASSIFICATION_CURATION;case n.Playlists:return s.appLink.action===a.Subjects.EDIT_CLASSIFICATION_PLAYLISTS;case n.Series:return s.appLink.action===a.Subjects.EDIT_CLASSIFICATION_SERIES;case n.Videos:return s.appLink.action===a.Subjects.EDIT_CLASSIFICATION_VIDEOS;case n.Clips:return s.appLink.action===a.Subjects.EDIT_CLASSIFICATION_CLIPS;case n.Interactives:return s.appLink.action===a.Subjects.EDIT_CLASSIFICATION_INTERACTIVES;case n.Aliases:return s.appLink.action===a.Subjects.EDIT_CLASSIFICATION_ALIASES;case n.Dashboard:return s.appLink.action===a.Subjects.EDIT_CLASSIFICATION_DASHBOARDS}};function T(t){const{presentation:s,classificationId:i,memberType:I}=t,{hasPermissions:c}=r();return s?e.jsxs(e.Fragment,{children:[e.jsx("h6",{children:`Presentation: ${!!s&&s.name}`}),e.jsx("p",{children:s.description}),e.jsx("div",{className:"py-2",children:e.jsx(S,{tabs:t.getTabs(s.id,i,c),isItemActive:A(I)})})]}):e.jsx(e.Fragment,{})}export{T as E};
//# sourceMappingURL=CPYC3VpT.chunk.js.map
