import { defineStore } from "pinia";

export const useAppStore = defineStore("app", {
  state() {
    return {
      title: "",
      sceneId: "",
      hasToken: false,
    };
  },
  getters: {},

  actions: {
    setData(data) {
      this.title = data;
    },
    setSceneId(data) {
      this.sceneId = data;
    },
    setHasToken(data) {
      this.hasToken = data;
    },
  },

  unistorage: true,
});
