X7ROOT File Manager
Current Path:
/home/okeydcqc/.trash/wp-content.2/plugins/extendify/src/HelpCenter/state
home
/
okeydcqc
/
.trash
/
wp-content.2
/
plugins
/
extendify
/
src
/
HelpCenter
/
state
/
ðŸ“
..
📄
ai-chat.js
(1.14 KB)
📄
globals-sync.js
(686 B)
📄
knowledge-base.js
(2.22 KB)
📄
tours.js
(6.55 KB)
📄
user-selections.js
(1005 B)
Editing: globals-sync.js
import { create } from 'zustand'; import { devtools, persist } from 'zustand/middleware'; const state = (set) => ({ visibility: 'minimized', // open | minimized | closed queuedTour: null, queueTourForRedirect: (tour) => set({ queuedTour: tour }), clearQueuedTour: () => set({ queuedTour: null }), setVisibility: (visibility) => { if (!['open', 'minimized', 'closed'].includes(visibility)) { throw new Error('Invalid visibility state'); } set({ visibility }); }, }); export const useGlobalSyncStore = create( persist(devtools(state, { name: 'Extendify Help Center Globals Sync' }), { name: `extendify-help-center-globals-sync-${window.extSharedData.siteId}`, }), );
Upload File
Create Folder