This commit is contained in:
14
client/app/composables/use-preferences.ts
Normal file
14
client/app/composables/use-preferences.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { createGlobalState, useLocalStorage } from '@vueuse/core'
|
||||
|
||||
export const usePreferences = createGlobalState(() => {
|
||||
const username = useLocalStorage<string>('username', '')
|
||||
|
||||
const audioDevice = shallowRef()
|
||||
const videoDevice = shallowRef()
|
||||
|
||||
return {
|
||||
username,
|
||||
audioDevice,
|
||||
videoDevice,
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user