// import * as Analytics from "expo-firebase-analytics";//JF:commenting out the firebase analytics portion
//import { store } from "../redux/store";

export const logImEXEvent = (eventName, additionalParams, stateProp = null) => {
  //const state = stateProp || store.getState();
  const eventParams = {
    // shop:
    //   (state.user && state.user.bodyshop && state.user.bodyshop.shopname) ||
    //   null,
    // user:
    //   (state.user && state.user.currentUser && state.user.currentUser.email) ||
    //   null,
    ...additionalParams,
  };
  // Analytics.logEvent(eventName, eventParams);//JF:commenting out the firebase analytics portion
};

//export const ExpoAnalytics = Analytics;
