import { defineStore } from 'pinia';
import '../utils/index.mjs';
import { Session } from '../utils/storage/index.mjs';
import { PUB } from '../utils/const/index.mjs';

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

export { useTagsViewRoutes };
