import{o as e,S as v,aV as i,dk as C,j as r,h as I,aR as l}from"./app-BgLa5dit.js";import{C as f}from"./CaNT0eQn.chunk.js";import{E}from"./DAIT4p5u.chunk.js";import"./EsGKTtoq.chunk.js";import"./B-fq6xxv.chunk.js";import"./BfMtaC_g.chunk.js";function V(t){const d=e(l.currentUser()),a=e(v.member(t.interactiveId)),o=e(i.curationTags()),u=e(i.selectedCurationTags(t.interactiveId)),m=C();function T(s,n,c){m(i.addTag(t.interactiveId,s,n,c))}function g(s,n,c){m(i.removeTag(t.interactiveId,s,n,c))}return r.jsxs(r.Fragment,{children:[!!d.data&&!!a.data&&r.jsx(E,{interactive:a.data,activeAction:I.Interactives.EDIT_INTERACTIVE_CURATION,currentUser:d.data}),!!a.data&&!!o.data&&!!u.data&&r.jsx(f,{id:t.interactiveId,heading:a.data.name,curationTags:o.data,selectedCurationTags:u.data,addCurationTag:T,removeCurationTag:g,disableClickViewCurated:!0})]})}export{V as EditInteractiveCurationView};
//# sourceMappingURL=Cwp8JHvU.chunk.js.map
