10 lines
316 B
TypeScript
10 lines
316 B
TypeScript
import {computed} from 'vue'
|
|
import {createSharedComposable} from '@vueuse/core'
|
|
import {useAuthStore} from '@/stores/auth'
|
|
|
|
export const useTimeFormat = createSharedComposable(() => {
|
|
const authStore = useAuthStore()
|
|
const store = computed(() => authStore.settings.frontendSettings.timeFormat)
|
|
return {store}
|
|
})
|