stargaze-studio/contexts/globalSettings.ts
2023-10-11 16:48:20 -07:00

12 lines
257 B
TypeScript

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