import { create } from 'zustand' interface SettingsState { config: Record loaded: boolean setConfig: (config: Record) => void updateKey: (key: string, value: string) => void } export const useSettingsStore = create((set) => ({ config: {}, loaded: false, setConfig: (config) => set({ config, loaded: true }), updateKey: (key, value) => set((s) => ({ config: { ...s.config, [key]: value } })), }))