verificationGate.js 345 B

12345678910111213141516
  1. import { defineStore } from "pinia";
  2. import { ref } from "vue";
  3. export const useVerificationGateStore = defineStore("verificationGate", () => {
  4. const open = ref(false);
  5. const requestVerification = () => {
  6. open.value = true;
  7. };
  8. const close = () => {
  9. open.value = false;
  10. };
  11. return { open, requestVerification, close };
  12. });