"use strict";(self.webpackChunkgrafana=self.webpackChunkgrafana||[]).push([[733],{60733(C,E,a){a.d(E,{AddToDashboard:()=>i});var s=a(74848),t=a(96540),d=a(52120),l=a(25356),r=a(11817),D=a(61491),O=a(60225),P=a(56292),M=a(24103);const i=({exploreId:n})=>{const[T,_]=(0,t.useState)(!1),c=(0,O.qq)(n),h=!!(0,D.useSelector)(c)?.queries?.length,o=(0,t.useCallback)(()=>_(!1),[]),e=(0,r.t)("explore.add-to-dashboard","Add to dashboard");return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(d.I,{icon:"apps",variant:"canvas",onClick:()=>_(!0),"aria-label":e,disabled:!h,children:e}),T&&(0,s.jsx)(l.a,{title:(0,M.t)(),onDismiss:o,isOpen:!0,children:(0,s.jsx)(P.H,{onClose:o,exploreId:n})})]})}}}]);

//# sourceMappingURL=733.5d379f1fe7145c221e66.js.map