UNPKG

@embrace-io/web-sdk

Version:
3 lines (2 loc) 686 B
import*as t from"react";import a from"hoist-non-react-statics";import"../../NavigationInstrumentation.js";import{getNavigationInstrumentation as e}from"../../instance.js";import{EMB_NAVIGATION_INSTRUMENTATIONS as r}from"../../../../../constants/attributes.js";var n=function(n){var o=e();o.setInstrumentationType(r.DeclarativeLegacy);var i=function(a){if(a.path){var e=a;e.computedMatch&&o.setCurrentRoute({path:e.computedMatch.path,url:e.computedMatch.url})}return t.createElement(n,a)};return i.displayName="withEmbraceRoutingLegacy(".concat(n.displayName||n.name||"Component",")"),a(i,n),i};export{n as withEmbraceRoutingLegacy}; //# sourceMappingURL=withEmbraceRoutingLegacy.js.map