import{jsx as e}from"react/jsx-runtime";import{useCallback as t}from"react";import{Link as r}from"react-router-dom";import o from"classnames";import{useDevCenterRouter as n}from"../../components/DevCenter/DevCenterRouterContext/effects/useDevCenterRouter.js";import a from"./UniversalLink.scss.js";var s=function(s){var m=s.children,i=s.testId,c=s.href,l=s.className,f=n(),p=o(a.root,l),u=t((function(e){e.stopPropagation(),e.preventDefault(),e.metaKey||e.ctrlKey?window.open(c,"_blank"):null==f||f.push(c)}),[f,c]);return f?e("a",{href:c,className:p,"data-testid":i,onClick:u,children:m}):e(r,{"data-testid":i,to:c,className:p,children:m})};export{s as UniversalLink};
//# sourceMappingURL=UniversalLink.js.map
