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/www/wp-content/plugins/complianz-gdpr/settings/src/Settings/Finish/useFinishData.js
import {create} from 'zustand';
import * as cmplz_api from "../../utils/api";
const useFinishData = create(( set, get ) => ({
	cookiebannerRequired:false,
	loading:false,
	getCookieBannerRequired: async () => {
		if (get().loading) {
			return;
		}
		set({
			loading:true,
		});
		let data = {};
		const {required} = await cmplz_api.doAction( 'get_cookiebanner_required', data).then( ( response ) => {
			return response;
		});
		set({
			cookiebannerRequired:required,
			loading:false,
		});
	},
}));

export default useFinishData;