koel/resources/assets/js/composables/useThirdPartyServices.ts
2024-07-06 17:44:40 +02:00

11 lines
364 B
TypeScript

import { toRef } from 'vue'
import { commonStore } from '@/stores'
export const useThirdPartyServices = () => {
return {
useLastfm: toRef(commonStore.state, 'uses_last_fm'),
useYouTube: toRef(commonStore.state, 'uses_you_tube'),
useAppleMusic: toRef(commonStore.state, 'uses_i_tunes'),
useSpotify: toRef(commonStore.state, 'uses_spotify')
}
}