@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.
17 lines (16 loc) • 556 B
TypeScript
import type { MixpanelProperty, UserEvents } from '../../core/user-events';
/** @deprecated */
export interface EmbeddedAnalyticsSessionRequest {
sdkVersion: string;
componentName: string;
userAgent: string;
legalEntityId: string;
userData?: Record<string, MixpanelProperty>;
}
type UseAnalyticsProps = {
userEvents: UserEvents;
sessionId: string | undefined;
sessionData: EmbeddedAnalyticsSessionRequest;
};
export declare const useAnalytics: ({ userEvents, sessionId, sessionData }: UseAnalyticsProps) => void;
export {};