'use strict';

var pinia = require('pinia');

const useRoutesList = pinia.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;
    }
  }
});

exports.useRoutesList = useRoutesList;
