import {defineStore} from "pinia";
import {ref} from "vue";

export const useUserStore = defineStore('user', () => {
  const user = ref(null);

  const setUser = (payload) => {
    user.value = payload.user
  }

  return { user, setUser }
})