@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.
25 lines (24 loc) • 1.1 kB
JavaScript
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] = "e15fee41-7910-4983-aacc-6a5d19ead0f3", e._sentryDebugIdIdentifier = "sentry-dbid-e15fee41-7910-4983-aacc-6a5d19ead0f3");
} catch (e) {}
import { I as ToastContextProvider } from "./resolveEnvironment-DNmu53Rr.js";
import { t as Modal } from "./Modal-BLP2aF-u.js";
import { Fragment, jsx } from "preact/jsx-runtime";
//#region src/components/ui/atoms/Modal/MaybeModal.tsx
/**
* Renders a modal or an inline div
* @returns {Modal|HTMLDivElement}
*/
var MaybeModal = ({ ariaLabel, children, inline = false, inset, onClose, showCloseButton, size }) => {
return inline ? /* @__PURE__ */ jsx(Fragment, { children }) : /* @__PURE__ */ jsx(Modal, {
onClose,
ariaLabel,
size,
inset,
showCloseButton,
children: /* @__PURE__ */ jsx(ToastContextProvider, { children })
});
};
//#endregion
export { MaybeModal as t };