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

15 lines
366 B
TypeScript
Raw Normal View History

import { toRef } from 'vue'
import { commonStore } from '@/stores'
export const useThirdPartyServices = () => {
2022-06-10 10:47:46 +00:00
const useLastfm = toRef(commonStore.state, 'use_last_fm')
const useYouTube = toRef(commonStore.state, 'use_you_tube')
const useAppleMusic = toRef(commonStore.state, 'use_i_tunes')
return {
useLastfm,
useYouTube,
useAppleMusic
}
}