import { defineStore } from 'pinia' import { ref } from 'vue' import type { InviteActivitySummary } from '@mp-pilates/shared' import { get } from '../utils/request' export const useInviteStore = defineStore('invite', () => { const activity = ref(null) const loading = ref(false) async function fetchActivity() { loading.value = true try { activity.value = await get('/invite/activity') return activity.value } finally { loading.value = false } } return { activity, loading, fetchActivity, } })