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.

30 lines (29 loc) 1.2 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] = "66d440c7-95eb-440a-beeb-99e2febafd8d", e._sentryDebugIdIdentifier = "sentry-dbid-66d440c7-95eb-440a-beeb-99e2febafd8d"); } catch (e) {} import { x as Alert } from "./resolveEnvironment-DNmu53Rr.js"; import { i as useAnalyticsContext } from "./Modal-BLP2aF-u.js"; import { jsx } from "preact/jsx-runtime"; //#region src/components/ui/molecules/ContextGuidance/ContextGuidance.tsx function ContextGuidance({ title, content, titleId, contentId, trackingParams }) { const userEvents = useAnalyticsContext(); const onGuidanceToggle = (status) => { userEvents.addFieldEvent("Clicked accordion", { actionType: status, field: "context guidance", label: titleId, content: contentId, ...trackingParams }); }; return /* @__PURE__ */ jsx(Alert, { title, type: "collapsible", variant: "info", onToggle: onGuidanceToggle, children: content }); } //#endregion export { ContextGuidance as t };