OneLauncher-Cracked/apps/oneclient/frontend/src/stores/appShellStore.ts
2025-08-21 11:19:44 +02:00

17 lines
431 B
TypeScript

import { create } from 'zustand';
export interface AppShellStore {
activeClusterId: number;
}
export interface AppShellStoreActions {
setActiveClusterId: (cluster: AppShellStore['activeClusterId']) => void;
}
export const useAppShellStore = create<AppShellStore & AppShellStoreActions>()(set => ({
activeClusterId: 0,
setActiveClusterId: cluster => set({ activeClusterId: cluster }),
}));
export default useAppShellStore;