"use strict";(self.webpackChunkgrafana=self.webpackChunkgrafana||[]).push([[8115],{68115:(c,t,a)=>{a.r(t),a.d(t,{AddToDashboard:()=>_});var s=a(27702),E=a(30973),l=a(13741),d=a(18771),r=a(85378),D=a(46181),O=a(80219);const _=({exploreId:e})=>{const[P,n]=(0,s.useState)(!1),M=(0,r.F9)(e),A=!!(0,d.useSelector)(M)?.queries?.length,o=(0,s.useCallback)(()=>n(!1),[]);return s.createElement(s.Fragment,null,s.createElement(E.h,{icon:"apps",variant:"canvas",onClick:()=>n(!0),"aria-label":"Add to dashboard",disabled:!A},"Add to dashboard"),P&&s.createElement(l.u,{title:(0,O.k)(),onDismiss:o,isOpen:!0},s.createElement(D.U,{onClose:o,exploreId:e})))}}}]);

//# sourceMappingURL=8115.d7dbfae7d3017b4713e0.js.map