koel/resources/assets/js/composables/useKoelPlus.ts

15 lines
469 B
TypeScript
Raw Normal View History

2024-01-08 16:59:05 +00:00
import { computed, reactive } from 'vue'
import { commonStore } from '@/stores'
export const useKoelPlus = () => {
return {
isPlus: computed(() => commonStore.state.koel_plus.active),
license: {
shortKey: commonStore.state.koel_plus.short_key,
customerName: commonStore.state.koel_plus.customer_name,
customerEmail: commonStore.state.koel_plus.customer_email
},
storeUrl: computed(() => commonStore.state.koel_plus.store_url)
}
}