UNPKG

@adyen/kyc-components

Version:

`adyen-kyc-components` provides the required pieces to build an onboarding flow based on a legal entity. To onboard and verify users, you need to create a user interface (UI) to collect user data. To speed up building your integration, Adyen offers onboar

22 lines (21 loc) 728 B
import type { Signal } from '@preact/signals'; import { type ComponentChildren } from 'preact'; interface ApiStateProps { legalEntityId: string; baseUrl: string; children?: ComponentChildren; } interface ApiState { legalEntityId: Signal<string>; baseUrl: Signal<string>; } export declare const useApiContext: () => ApiState; /** * Creates and provides the apiState, which contains the baseUrl and the legalEntity * which are necessary toconstruct the url in API calls * * @param {string} legalEntityId - legalEntityId * @param {string} baseUrl - base url */ export declare const ApiProvider: ({ legalEntityId, baseUrl, children }: ApiStateProps) => import("preact/jsx-runtime").JSX.Element; export {};