@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] = "69ebe03e-d18c-4a97-a2a9-0853a9b4734c", e._sentryDebugIdIdentifier = "sentry-dbid-69ebe03e-d18c-4a97-a2a9-0853a9b4734c");
} catch (e) {}
import { t as ToastContextProvider } from "./ToastContextProvider-C-7n4Tu6.js";
import { t as Modal } from "./Modal-CioQJ7Q7.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 };