# extendify/trunk/src/Assist/state/site-assist-tour.js

Extendify, version trunk. 22 lines.

- Page: https://pluginprobe.com/plugins/extendify/trunk/code/src/Assist/state/site-assist-tour.js
- Raw: https://pluginprobe.com/plugins/extendify/trunk/raw/src/Assist/state/site-assist-tour.js
- Modified: 2026-08-12T16:23:58+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/trunk/code/src/Assist/state/site-assist-tour.js#L10-L20`.

```javascript
import { safeLocalStorage } from '@shared/state/safe-local-storage';
import { create } from 'zustand';
import { createJSONStorage, devtools, persist } from 'zustand/middleware';

const state = (set, get) => ({
	progress: [],
	updateSiteAssistTourStatus(taskId) {
		set({ progress: [taskId] });
	},
	finishedTour(tourId) {
		return get().progress.find((tour) => tour === tourId);
	},
});

export const useSiteAssistTourStorage = create(
	persist(devtools(state, { name: 'Extendify Site Assist Tour' }), {
		name: `extendify-site-assist-tour-${window.extSharedData.siteId}`,
		storage: createJSONStorage(() => safeLocalStorage),
	}),
	state,
);

```
