sticky-horse
Version:
With StickyHorse allow your users to send feedback to your team.
5 lines (4 loc) • 356 B
TypeScript
import React from 'react';
import { TrackingProps, SocketContextType } from '../types';
export declare const useSocket: () => SocketContextType;
export declare function withTracking<P extends object>(WrappedComponent: React.ComponentType<P>, pagePath: string, socketUrl: string, userId: string): (props: Omit<P, keyof TrackingProps>) => React.JSX.Element;