'use strict';

var pinia = require('pinia');
require('../utils/index.js');
var storage = require('../utils/storage.js');

const useTagsViewRoutes = pinia.defineStore("tagsViewRoutes", {
  state: () => ({
    tagsViewRoutes: [],
    isTagsViewCurrenFull: false
  }),
  actions: {
    async setTagsViewRoutes(data) {
      this.tagsViewRoutes = data;
    },
    setCurrenFullscreen(bool) {
      storage.Session.set("isTagsViewCurrenFull", bool);
      this.isTagsViewCurrenFull = bool;
    }
  }
});

exports.useTagsViewRoutes = useTagsViewRoutes;
