Update Healer Man server
This commit is contained in:
1 parent
f8314e7de1
commit
1fedb9368d
76 files changed
+20556
-2523
No files matched your search
@@ -0,0 +1,20 @@
|
||||
import { create } from "zustand";
|
||||
|
||||
const STORAGE_KEY = "healer-man.include-beta-companion-specs.v1";
|
||||
|
||||
function loadPreference(): boolean {
|
||||
try { return window.localStorage.getItem(STORAGE_KEY) === "true"; } catch { return false; }
|
||||
}
|
||||
|
||||
interface CompanionPartyPreferencesState {
|
||||
includeBetaSpecs: boolean;
|
||||
setIncludeBetaSpecs: (include: boolean) => void;
|
||||
}
|
||||
|
||||
export const useCompanionPartyPreferences = create<CompanionPartyPreferencesState>((set) => ({
|
||||
includeBetaSpecs: loadPreference(),
|
||||
setIncludeBetaSpecs: (includeBetaSpecs) => {
|
||||
try { window.localStorage.setItem(STORAGE_KEY, String(includeBetaSpecs)); } catch { /* optional preference */ }
|
||||
set({ includeBetaSpecs });
|
||||
},
|
||||
}));
|
||||
Reference in new issue
Block a user