helloasso.ts 525 B

1234567891011121314151617181920
  1. import { defineStore } from 'pinia'
  2. import { ref } from 'vue'
  3. import type { Ref } from 'vue'
  4. import type { MenuGroup, MenuItem } from '~/types/layout'
  5. export const useHelloAssoStore = defineStore('helloasso', () => {
  6. /**
  7. * Le code d'autorisation Helloasso obtenu via la mire d'autorisation
  8. */
  9. const authorizationCode: Ref<string | null> = ref(null)
  10. const setAuthorizationCode = (code: string | null) => {
  11. authorizationCode.value = code
  12. }
  13. return {
  14. authorizationCode,
  15. setAuthorizationCode
  16. }
  17. })