"use strict";(self.webpackChunkgrafana_exploretraces_app=self.webpackChunkgrafana_exploretraces_app||[]).push([[812],{15812:(e,r,a)=>{a.r(r),a.d(r,{default:()=>s});var n=a(18531),t=a(82007),o=a(85959),p=a.n(o),u=a(62533);function s({datasourceUid:e,matchers:r,from:a,to:s,returnToPreviousSource:c,renderButton:i}){const l=(0,n.useReturnToPrevious)(),d=(0,o.useMemo)(()=>{let n=new URLSearchParams;return e&&n.append("var-ds",e),a&&n.append("from",a),s&&n.append("to",s),r.forEach(e=>{n.append("var-filters",`${e.name}|${e.operator}|${e.value}`)}),n.append("var-primarySignal","true"),`a/${u.id}/explore?${n.toString()}`},[e,a,s,r]);return d?i?i({href:d}):p().createElement(t.LinkButton,{variant:"secondary",href:d,onClick:()=>l(c||"previous")},"Open in Traces Drilldown"):null}}}]);
//# sourceMappingURL=812.js.map?_cache=ccee62b1efb9b2ee9d6e