File "global.js"
Full Path: /home/leadltht/fastlinkinternet.com/admin/wp-content/wp-content/wp-content/plugins/extendify/src/Library/state/global.js
File size: 482 bytes
MIME-type: text/x-java
Charset: utf-8
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,
);