Init globalSettings

This commit is contained in:
Serkan Reis 2023-08-31 23:37:29 +03:00
parent 1a9d7ac9c8
commit 3772dec6e1

View File

@ -0,0 +1,11 @@
import create from 'zustand'
export type Timezone = 'UTC' | 'Local'
export const useGlobalSettings = create(() => ({
timezone: 'UTC' as Timezone,
}))
export const setTimezone = (timezone: Timezone) => {
useGlobalSettings.setState({ timezone })
}