import * as React from 'react';

interface ToldContextProps {
  hiddenFields: { [key: string]: string };
  trackScreen: (screenName: string) => void;
  sendCustomEvent: (
    eventName: string,
    eventProperties?: { [key: string]: string } | undefined
  ) => void;
  close: () => void;
  addHiddenFields: (
    newHiddenFields: { [key: string]: string },
    setData: boolean
  ) => void;
}

const ToldContext = React.createContext<ToldContextProps>({
  hiddenFields: {},
  trackScreen: () => {},
  sendCustomEvent: () => {},
  close: () => {},
  addHiddenFields: () => {},
});

export default ToldContext;
