@deep-foundation/deepcase
Version:
[](https://gitpod.io/#https://github.com/deep-foundation/deepcase) [](https://discord.gg/deep-
15 lines (14 loc) • 661 B
TypeScript
import React from 'react';
import type { Context } from 'react';
export interface IAnalyticsContext {
event?: (eventName: string) => void;
}
export declare const AnalyticsContext: React.Context<IAnalyticsContext>;
export declare function useAnalitics(context?: Context<IAnalyticsContext>): IAnalyticsContext;
export declare const Analitics: React.MemoExoticComponent<({ yandexMetrikaAccounts, googleAnalyticsAccounts, context, debug, children, }: {
yandexMetrikaAccounts?: number[];
googleAnalyticsAccounts?: string[];
context?: Context<IAnalyticsContext>;
debug?: boolean;
children: any;
}) => import("react/jsx-runtime").JSX.Element>;