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.

9 lines (8 loc) 559 B
import type { MixpanelProperty } from '../core/user-events'; import type { TaskType } from '../stores/globalStore/taskTypes'; /** * Hook that automatically sends a "Landed on page" analytic event on task mount & initializes event task type. * Used on dropin level (i.e. Business Details, Individual, Business Financing etc.) to track visits. * This centralizes the common analytics pattern used across form components. */ export declare function useTaskLandedEvent(taskType: TaskType | undefined, additionalData?: Record<string, MixpanelProperty>): void;