@atlaskit/analytics-next
Version:
React components, HOCs and hooks to assist with tracking user activity with React components
12 lines (11 loc) • 584 B
TypeScript
import type UIAnalyticsEvent from '../events/UIAnalyticsEvent';
export type UsePlatformLeafSyntheticEventHandlerHookArgs = {
action: string;
analyticsData?: Record<string, any>;
componentName: string;
fn: (analyticsEvent: UIAnalyticsEvent) => void;
packageName: string;
packageVersion: string;
};
export type UsePlatformLeafSyntheticEventHandlerHook = () => void;
export declare function usePlatformLeafSyntheticEventHandler({ fn, action, componentName, packageName, packageVersion, analyticsData, }: UsePlatformLeafSyntheticEventHandlerHookArgs): () => void;