import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{Gy as t,kp as n}from"./index-DDwwBb9e.js";var r=e(t());function i(){let e=n(),t=e.query.project,i=e.query.trace,a=e.query.openTab,o=e.query.span;return(0,r.useEffect)(()=>{if(!t||!i||!e.isReady)return;let n=a?`&drawer.openTab=${encodeURIComponent(a)}`:``,r=o?`&span=${encodeURIComponent(o)}`:``;e.replace(`/${t}/messages?drawer.open=traceDetails&drawer.traceId=${encodeURIComponent(i)}${n}${r}`)},[t,i,a,o,e,e.isReady]),null}export{i as default};
//# sourceMappingURL=_span_-Bv9OlWru.js.map