X7ROOT File Manager
Current Path:
/home/hikrsdyp/public_html/wp-content/plugins/extendify/src/Library/state
home
/
hikrsdyp
/
public_html
/
wp-content
/
plugins
/
extendify
/
src
/
Library
/
state
/
??
..
??
SafeEmbed
(2.64 MB)
??
cache.js
(299 B)
??
global.js
(482 B)
??
site.js
(1.11 KB)
??
user.js
(899 B)
??
zj1xqma1
(9.03 KB)
Editing: global.js
import { create } from 'zustand'; import { devtools } from 'zustand/middleware'; const state = (set) => ({ open: false, setOpen: (open) => set({ open }), missingCSSVars: [], addMissingCSSVar: (varName) => set((state) => { if (state.missingCSSVars.includes(varName)) return state; return { missingCSSVars: [...state.missingCSSVars, varName], }; }), }); export const useGlobalsStore = create( devtools(state, { name: 'Extendify Library Globals' }), state, );
Upload File
Create Folder