This commit is contained in:
@@ -1,13 +1,10 @@
|
||||
import { createGlobalState, useLocalStorage } from '@vueuse/core'
|
||||
import { createGlobalState } 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