import * as React from "react";

export interface RouteContext {
  settings: {
    analytics: {
      gtm: {
        cId: string;
        enabled: boolean;
      };
      ga: {
        mId: string;
        enabled: boolean;
      };
      mp: {
        token: string;
        enabled: boolean;
      };
      ph: {
        key: string;
        host: string;
        enabled: boolean;
      };
    };
  };
}
export const RouteContext = React.createContext<RouteContext>({} as any);
export const useRouteContext = () => React.use(RouteContext);
