;
{
  try {
    let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
    n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "d63726ff-0ec7-4ce1-8f4b-c818d14c9ebe", e._sentryDebugIdIdentifier = "sentry-dbid-d63726ff-0ec7-4ce1-8f4b-c818d14c9ebe");
  } catch (e) {
  }
}
;
import { jsxs, jsx } from "preact/jsx-runtime";
import cx from "classnames";
import { r as Icon } from "./StoreProvider-CqQrndhS.js";
const link = "adyen-kyc-link";
const linkDefault = "adyen-kyc-link-default";
const linkInline = "adyen-kyc-link-inline";
const styles = {
  link,
  linkDefault,
  linkInline
};
const Link = ({ children, external = false, href, inline = false }) => {
  const rel = external ? "external noopener noreferrer" : void 0;
  const target = external ? "_blank" : "_self";
  const className = cx(styles.link, {
    [styles.linkInline]: inline,
    [styles.linkDefault]: !inline
  });
  return /* @__PURE__ */ jsxs("a", { className, href, rel, target, children: [
    children,
    external && !inline && /* @__PURE__ */ jsx(Icon, { name: "external-link" })
  ] });
};
export {
  Link as L
};
