@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.
8 lines (7 loc) • 440 B
TypeScript
import type { NsTranslationKey } from '../../types';
/**
* Hook that automatically sends a "Landed on page" analytics event on when active form changes.
* Used on form component level (i.e. Basic information, Additional details etc.) to explicitly track page visits.
* This centralizes the common analytics pattern used across form components.
*/
export declare const usePageLandedEvent: (formName: NsTranslationKey<"common">) => void;