%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/tradesc/www/relax/wp-content/plugins/really-simple-ssl/settings/src/Modal/
Upload File :
Create Path :
Current File : /home/tradesc/www/relax/wp-content/plugins/really-simple-ssl/settings/src/Modal/ModalData.js

import {create} from 'zustand';

const useModalData = create(( set, get ) => ({
    modalData: [],
    buttonsDisabled: false,
    showModal:false,
    ignoredItems:[],
    fixedItems:[],
    item:false,
    setIgnoredItemId: (ignoredItemId) => {
        let ignoredItems = get().ignoredItems;
        ignoredItems.push(ignoredItemId);
        set({ignoredItems: ignoredItems,  });
    },
    setFixedItemId: (fixedItemId) => {
        let fixedItems = get().fixedItems;
        fixedItems.push(fixedItemId);
        set({fixedItems: fixedItems,  });
    },
    handleModal: (showModal, modalData, item) => {
        set({showModal: showModal, modalData:modalData, item:item  });
    },
    setModalData: (modalData) => {
        set({modalData:modalData });
    },
}));

export default useModalData;

Zerion Mini Shell 1.0