"use client";
import { j as r } from "./index.esm38.js";
import { forwardRef as m } from "react";
import l from "./index.esm40.js";
import s from "./index.esm72.js";
import { Root as c } from "./index.esm8.js";
import { LinkIcon as p } from "./index.esm73.js";
const d = m(
  ({ children: i, showIcon: o = !0, className: e, testId: t, ...a }, n) => /* @__PURE__ */ r.jsxs(
    c,
    {
      ref: n,
      as: "a",
      testId: t,
      "data-link": !0,
      className: l(s.link, e),
      ...a,
      children: [
        /* @__PURE__ */ r.jsx("span", { className: s.linkText, children: i }),
        o && /* @__PURE__ */ r.jsx("span", { className: s.linkIcon, "aria-hidden": !0, children: /* @__PURE__ */ r.jsx(p, { decorative: !0 }) })
      ]
    }
  )
);
d.displayName = "Link";
export {
  d as Link
};
//# sourceMappingURL=index.esm22.js.map
