@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.
13 lines (12 loc) • 723 B
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] = "34b3d69f-87e7-4343-bbc0-26383bc67cbd", e._sentryDebugIdIdentifier = "sentry-dbid-34b3d69f-87e7-4343-bbc0-26383bc67cbd");
} catch (e) {}
import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-yxi9XhLi.js";
//#region src/utils/api/useCapabilities.ts
var useCapabilities = () => {
const { data: rootLegalEntity } = useLegalEntity(ROOT_LE);
return rootLegalEntity?.capabilities;
};
//#endregion
export { useCapabilities as t };