view v2 update

This commit is contained in:
Mistral Vibe
2026-04-10 00:34:09 +02:00
parent d73377ec2f
commit 8ea114755a
7 changed files with 972 additions and 1722 deletions

View File

@@ -0,0 +1,18 @@
import { create } from "zustand";
interface BandState {
activeBandId: string | null;
setActiveBandId: (id: string | null) => void;
}
function load(): string | null {
try { return localStorage.getItem("rh_active_band_id"); } catch { return null; }
}
export const useBandStore = create<BandState>()((set) => ({
activeBandId: load(),
setActiveBandId: (id) => {
try { if (id) localStorage.setItem("rh_active_band_id", id); } catch { /* ignore */ }
set({ activeBandId: id });
},
}));