import{j as a}from"./iframe-p4aYZyoq.js";import{c as n}from"./index-Dx18ixSn.js";import{t as p}from"./utils-pBtDpbI-.js";import{S as u}from"./external-link-DPagDcN8.js";const y=({children:t,url:e,tidyUrl:r=!1,newTab:l=!0,className:i,rel:o,noIcon:s=!1,...d})=>e?a.jsxs("a",{...d,className:n("external-link",i),rel:n("noopener",o),href:e,...l?{target:"_blank"}:{},children:[t||(r?p(e):e),!s&&a.jsx(u,{"data-testid":"external-link-icon",width:12.5})]}):a.jsx(a.Fragment,{children:t});try{externallink.displayName="externallink",externallink.__docgenInfo={description:"",displayName:"externallink",props:{url:{defaultValue:null,description:"The location that is visted when clicked",name:"url",required:!0,type:{name:"string | null"}},newTab:{defaultValue:{value:"true"},description:"Decides if a new browser tab should be opened or not, defaults to true",name:"newTab",required:!1,type:{name:"boolean"}},tidyUrl:{defaultValue:{value:"false"},description:"",name:"tidyUrl",required:!1,type:{name:"boolean"}},noIcon:{defaultValue:{value:"false"},description:"",name:"noIcon",required:!1,type:{name:"boolean"}}}}}catch{}export{y as E};
