%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/SiteSettings.js

import create from 'zustand'
import { persist } from 'zustand/middleware'
import { SiteSettings } from '../api/SiteSettings'

const storage = {
    getItem: async () => await SiteSettings.getData(),
    setItem: async (_name, value) => await SiteSettings.setData(value),
}

export const useSiteSettingsStore = create(
    persist(
        () => ({
            enabled: true,
        }),
        {
            name: 'extendify-sitesettings',
            getStorage: () => storage,
        },
    ),
)

Zerion Mini Shell 1.0