2024-04-04 22:20:42 +00:00
|
|
|
import { computed } from 'vue'
|
2024-01-08 16:59:05 +00:00
|
|
|
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,
|
2024-10-13 17:37:01 +00:00
|
|
|
customerEmail: commonStore.state.koel_plus.customer_email,
|
2024-01-08 16:59:05 +00:00
|
|
|
},
|
2024-01-14 12:43:53 +00:00
|
|
|
checkoutUrl: computed(() =>
|
2024-10-13 17:37:01 +00:00
|
|
|
`https://store.koel.dev/checkout/buy/${commonStore.state.koel_plus.product_id}?embed=1&media=0&desc=0`,
|
|
|
|
),
|
2024-01-08 16:59:05 +00:00
|
|
|
}
|
|
|
|
}
|