# extendify/3.2.1/src/PageCreator/state/global.js

Extendify, version 3.2.1. 18 lines.

- Page: https://pluginprobe.com/plugins/extendify/3.2.1/code/src/PageCreator/state/global.js
- Raw: https://pluginprobe.com/plugins/extendify/3.2.1/raw/src/PageCreator/state/global.js
- Modified: 2025-03-13T17:10:44+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/extendify/3.2.1/code/src/PageCreator/state/global.js#L10-L20`.

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

const state = (set) => ({
	open: false,
	setOpen: (open) => set({ open }),
	progress: '',
	setProgress: (progress) => set({ progress }),
	regenerationCount: 0,
	incrementRegenerationCount: () =>
		set((state) => ({ regenerationCount: state.regenerationCount + 1 })),
});

export const useGlobalsStore = create(
	devtools(state, { name: 'Extendify Page Creator Globals' }),
	state,
);

```
