| 1 |
import { create } from 'zustand'; |
| 2 |
import { devtools } from 'zustand/middleware'; |
| 3 |
|
| 4 |
type GlobalTypes = { |
| 5 |
bringAttentionToPanel: false | string; |
| 6 |
setBringAttentionToPanel: (b: false | string) => void; |
| 7 |
}; |
| 8 |
|
| 9 |
export const useGlobalStore = create<GlobalTypes>()( |
| 10 |
devtools( |
| 11 |
(set) => ({ |
| 12 |
bringAttentionToPanel: false, |
| 13 |
setBringAttentionToPanel: (bringAttentionToPanel) => { |
| 14 |
set(() => ({ bringAttentionToPanel })); |
| 15 |
}, |
| 16 |
}), |
| 17 |
{ name: 'Code Block Pro Globals' }, |
| 18 |
), |
| 19 |
); |
| 20 |
|