%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/tradesc/www/relax/wp-content/plugins/complianz-gdpr/settings/src/Dashboard/Tools/
Upload File :
Create Path :
Current File : /home/tradesc/www/relax/wp-content/plugins/complianz-gdpr/settings/src/Dashboard/Tools/ToolsData.js

import {create} from 'zustand';
import * as cmplz_api from "../../utils/api";

const useTools = create(( set, get ) => ({
	getDocuments: async () => {
		const {documents, processingAgreementOptions, proofOfConsentOptions,dataBreachOptions} = await cmplz_api.doAction('documents_block_data').then( ( response ) => {

			return response;
		});
		set(state => ({ documents:documents, processingAgreementOptions:processingAgreementOptions, proofOfConsentOptions:proofOfConsentOptions,dataBreachOptions:dataBreachOptions}));
	},

}));

export default useTools;


Zerion Mini Shell 1.0