%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/dopla/www/wp-content/plugins/ml-slider/extendify-sdk/src/state/
Upload File :
Create Path :
Current File : /home/dopla/www/wp-content/plugins/ml-slider/extendify-sdk/src/state/GlobalState.js

import create from 'zustand'
import { persist } from 'zustand/middleware'

export const useGlobalStore = create(
    persist(
        (set) => ({
            open: false,
            metaData: {},
            currentTaxonomies: {},
            currentType: 'pattern',
            settingsModal: false,
            updateCurrentTaxonomies: (data) =>
                set({
                    currentTaxonomies: Object.assign({}, data),
                }),
            updateCurrentType: (data) => set({ currentType: data }),
            setOpen: (value) => {
                set({ open: value })
            },
        }),
        {
            name: 'extendify-global-state',
        },
    ),
)

Zerion Mini Shell 1.0