GhostManSec
Server: Apache
System: Linux webm019.cluster130.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: exhehbu (1008962)
PHP: 8.0.30
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/exhehbu/wp/wp-content/plugins/complianz-gdpr/settings/src/Settings/Debug/useDebugData.js
import {create} from 'zustand';
import * as cmplz_api from "../../utils/api";
const useDebugData = create(( set, get ) => ({
	debugData: [],
	debugDataLoaded: false,
	scriptDebugEnabled:false,
	getDebugData: async () => {
		const {debug_data, script_debug_enabled } = await cmplz_api.doAction('get_debug_data', {}).then( ( response ) => {
			return response;
		});
		set(state => ({ debugDataLoaded:true,debugData:debug_data, scriptDebugEnabled:script_debug_enabled}));
	},
}));
export default useDebugData;