"use strict";(self.webpackChunkgrafana=self.webpackChunkgrafana||[]).push([[8431],{10767:(T,e,s)=>{s.r(e),s.d(e,{AccessControlFolderPermissions:()=>r,default:()=>A});var n=s(39953),E=s(89772),c=s(88206),_=s(13253),P=s(21308),l=s(45015),D=s(57721),M=s(83600),d=s(82744);function O(o,t){const a=t.match.params.uid;return{uid:a,pageNav:(0,l.ht)(o.navIndex,`folder-permissions-${a}`,(0,d._l)(1))}}const m={getFolderByUid:M.Pb},C=(0,E.connect)(O,m),r=({uid:o,getFolderByUid:t,pageNav:a})=>{(0,n.useEffect)(()=>{t(o)},[t,o]);const v=P.Vt.hasPermission(D.AccessControlAction.FoldersPermissionsWrite);return n.createElement(_.T,{navId:"dashboards/browse",pageNav:a.main},n.createElement(_.T.Contents,null,n.createElement(c.P,{resource:"folders",resourceId:o,canSetPermissions:v})))},A=C(r)}}]);

//# sourceMappingURL=FolderPermissions.dec06b7db46b73502526.js.map