UNPKG

@adyen/kyc-components

Version:

This guide assumes that you have already an account with Adyen. A legalEntity needs to be created, and you need to have a `legalEntityId` to instatiate a Component.

33 lines (32 loc) 1.36 kB
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] = "a42d02f4-7aa3-4607-85b3-1dc0e3c243da", e._sentryDebugIdIdentifier = "sentry-dbid-a42d02f4-7aa3-4607-85b3-1dc0e3c243da"); } catch (e) {} import { a as Icon } from "./translation-BFxyJ1c5.js"; import cx from "classnames"; import { jsx, jsxs } from "preact/jsx-runtime"; var Link_module_default = { link: "adyen-kyc-link", "link-default": "adyen-kyc-link-default", linkDefault: "adyen-kyc-link-default", "link-inline": "adyen-kyc-link-inline", linkInline: "adyen-kyc-link-inline" }; //#endregion //#region src/components/ui/atoms/Link/Link.tsx var Link = ({ children, external = false, href, inline = false }) => { const rel = external ? "external noopener noreferrer" : void 0; const target = external ? "_blank" : "_self"; return /* @__PURE__ */ jsxs("a", { className: cx(Link_module_default.link, { [Link_module_default.linkInline]: inline, [Link_module_default.linkDefault]: !inline }), href, rel, target, children: [children, external && !inline && /* @__PURE__ */ jsx(Icon, { name: "external-link" })] }); }; //#endregion export { Link as t };