import{a as f,r as n,I as x}from"./IconFontIcon-CYzTZH2m.js";import{j as i}from"./jsx-runtime-Cd7JDmko.js";import{c as R}from"./color.module-D-Qppeed.js";var e={},c;function d(){if(c)return e;c=1;var t=f();return e.createRoot=t.createRoot,e.hydrateRoot=t.hydrateRoot,e}var v=d();const I=t=>{const{href:o,style:s={},children:l="了解更多",showIcon:h,...p}=t,m=n.useMemo(()=>({fontSize:"inherit",whiteSpace:"nowrap",color:R.primaryColor,...s}),[s]),u=n.useMemo(()=>{let r=o||"";const a="/help";return r=r.replace("//","/"),r.startsWith(".")&&r.replace(".",""),r.startsWith(a)?r:(r.startsWith("/")||(r=`/${r}`),`${a}${r}`)},[o]);return i.jsxs("a",{style:m,...p,href:`https://www.szdamai.com${u}`,target:"_blank",children:[h&&i.jsx(x,{iconName:"bangzhu_241"}),l]})};export{I as H,v as c};
