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

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

- Page: https://pluginprobe.com/plugins/code-block-pro/1.28.0/code/src/state/global.ts
- Raw: https://pluginprobe.com/plugins/code-block-pro/1.28.0/raw/src/state/global.ts
- Modified: 2026-04-12T13:22:22+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.28.0/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' },
	),
);

```
