koel/resources/assets/js/composables/useThirdPartyServices.ts
2024-10-14 00:37:01 +07:00

11 lines
365 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'),
}
}