import{r as a}from"./index-NdkWRN8K.js";import{j as e}from"./jsx-runtime-CnH95YSl.js";import{L as d}from"./Link-DNIf0luC.js";import{M as x}from"./ExternalLink-D0l1c5Cz.js";const R=["default","monochrome"],L=({ariaLabel:i,children:t,href:l,icon:n,linkRef:m,rel:c,target:r,testId:p,translate:f,variant:k,onClick:u})=>{const s=a.useRef(null);return a.useImperativeHandle(m,()=>({focus:()=>{var o;(o=s.current)==null||o.focus()}}),[]),e.jsxs(d,{"aria-label":i,"data-se":p,href:l,onClick:u,ref:s,rel:c,target:r,translate:f,variant:k,children:[n&&e.jsx("span",{className:"Link-icon",children:n}),t,r==="_blank"&&e.jsx("span",{className:"Link-indicator",role:"presentation",children:e.jsx(x,{})})]})},j=a.memo(L);j.displayName="Link";export{j as M,R as l};
