import { defineStore } from 'pinia';

const useRoutesList = defineStore("routesList", {
  state: () => ({
    routesList: [],
    isColumnsMenuHover: false,
    isColumnsNavHover: false,
    currentRoute: null
  }),
  actions: {
    setCurrentRoute(route) {
      this.currentRoute = route;
    },
    async setRoutesList(data) {
      this.routesList = data;
    },
    async setColumnsMenuHover(bool) {
      this.isColumnsMenuHover = bool;
    },
    async setColumnsNavHover(bool) {
      this.isColumnsNavHover = bool;
    }
  }
});

export { useRoutesList };
