refactor: rename store folder to stores

This commit is contained in:
Sonny
2024-11-07 00:31:24 +01:00
committed by Sonny
parent 5c37fe9c31
commit 9a215f3e41
10 changed files with 9 additions and 9 deletions

View File

@@ -0,0 +1,11 @@
import { create } from 'zustand';
interface GlobalHotkeysStore {
globalHotkeysEnabled: boolean;
setGlobalHotkeysEnabled: (value: boolean) => void;
}
export const useGlobalHotkeysStore = create<GlobalHotkeysStore>((set) => ({
globalHotkeysEnabled: true,
setGlobalHotkeysEnabled: (value) => set({ globalHotkeysEnabled: value }),
}));