# code-block-pro/1.27.5/src/state/global.ts

Code Block Pro – Beautiful Syntax Highlighting, version 1.27.5. 20 lines.

- Page: https://pluginprobe.com/plugins/code-block-pro/1.27.5/code/src/state/global.ts
- Raw: https://pluginprobe.com/plugins/code-block-pro/1.27.5/raw/src/state/global.ts
- Modified: 2023-05-29T02:24:30+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/code-block-pro/1.27.5/code/src/state/global.ts#L10-L20`.

```typescript
import { create } from 'zustand';
import { devtools } from 'zustand/middleware';

type GlobalTypes = {
    bringAttentionToPanel: false | string;
    setBringAttentionToPanel: (b: false | string) => void;
};

export const useGlobalStore = create<GlobalTypes>()(
    devtools(
        (set) => ({
            bringAttentionToPanel: false,
            setBringAttentionToPanel: (bringAttentionToPanel) => {
                set(() => ({ bringAttentionToPanel }));
            },
        }),
        { name: 'Code Block Pro Globals' },
    ),
);

```
