text: import axios from "axios";
  import store from "../state/store/configureStore";
  import Functions from "./Functions";
  
  const AppData = {
    async read() {
      try {
        const response = await axios.get("/app_data");
        store.dispatch({
          type: "SET_APP_DATA",
          payload: response.data.app_data,
        });
      } catch (error) {
        Functions.redirectToErrorPage();
      }
    },
  };
  
  export default AppData;
  