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

12 lines
364 B
TypeScript
Raw Normal View History

import { toRef } from 'vue'
import { commonStore } from '@/stores'
export const useThirdPartyServices = () => {
return {
2024-01-04 11:35:36 +00:00
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')
}
}