15 lines
327 B
TypeScript
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 }),
|
|
}));
|
|
|