Fortune-PlayLogic/lib/store/settings-store.ts
“kirukib” c471aa30d4 first
2026-02-18 16:01:12 +03:00

15 lines
327 B
TypeScript

import { create } from "zustand";
export type OddsFormat = "decimal";
type SettingsState = {
oddsFormat: OddsFormat;
setOddsFormat: (format: OddsFormat) => void;
};
export const useSettingsStore = create<SettingsState>((set) => ({
oddsFormat: "decimal",
setOddsFormat: (format) => set({ oddsFormat: format }),
}));