stargaze-studio/contexts/globalSettings.ts

12 lines
257 B
TypeScript
Raw Normal View History

import { create } from 'zustand'
2023-08-31 20:37:29 +00:00
export type Timezone = 'UTC' | 'Local'
export const useGlobalSettings = create(() => ({
timezone: 'UTC' as Timezone,
}))
export const setTimezone = (timezone: Timezone) => {
useGlobalSettings.setState({ timezone })
}