feat: zenmode

This commit is contained in:
Anthony Fu 2022-11-24 12:21:30 +08:00
parent 3ce1eb3537
commit e17b918c00
5 changed files with 19 additions and 5 deletions

View file

@ -1,6 +1,8 @@
import { STORAGE_KEY_FIRST_VISIT } from '~/constants'
import { STORAGE_KEY_FIRST_VISIT, STORAGE_KEY_ZEN_MODE } from '~/constants'
export const isFirstVisit = useLocalStorage(STORAGE_KEY_FIRST_VISIT, true)
export const isZenmode = useLocalStorage(STORAGE_KEY_ZEN_MODE, false)
export const toggleZenmode = useToggle(isZenmode)
export const isUserSwitcherOpen = ref(false)
export const isSigninDialogOpen = ref(false)