import { ref, computed } from 'vue'
import { defineStore } from 'pinia'

// export const useStore = defineStore('store', () => {
//   const auth = ref({
//     user:null
    
    
//   })
  

//   return {auth}



// })
export const useStore = defineStore('store', {
  state: () => ({
    auth: {
      user: null
    }
  }),
  actions: {
    setUser(user:any) {
      this.auth.user = user;
    }
  },
  persist:true
});
