@atlaskit/analytics-next
Version:
React components, HOCs and hooks to assist with tracking user activity with React components
7 lines (6 loc) • 435 B
TypeScript
import React from 'react';
export interface WithContextProps {
analyticsContext?: Record<string, any>;
}
declare const withAnalyticsContext: (defaultData?: any) => <Props, Component>(WrappedComponent: React.ComponentType<Props> & Component) => React.ForwardRefExoticComponent<React.PropsWithoutRef<JSX.LibraryManagedAttributes<Component, Props & WithContextProps>> & React.RefAttributes<any>>;
export default withAnalyticsContext;