import { createStore } from "vuex"; import auth from "./modules/auth"; import { toastController } from "@ionic/vue"; const store = createStore({ state: { api: process.env.VUE_APP_BACKEND_URL, }, actions: { // eslint-disable-next-line async toast({ commit }, data: any) { const toast = await toastController.create({ header: data.header, message: data.text, color: data.color, duration: 2000, position: "top", }); return toast.present(); }, }, modules: { auth, }, }); export default store;