chad/client/app/composables/use-preferences.ts
Никита Круглицкий 196aa36970
All checks were successful
Deploy / deploy (push) Successful in 43s
front update
2025-10-09 04:42:34 +06:00

15 lines
320 B
TypeScript

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,
}
})