mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-08 22:53:25 +00:00
12 lines
338 B
TypeScript
12 lines
338 B
TypeScript
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 }),
|
|
}));
|