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/Integrations/Category.js
import RadioGroup from "../Inputs/RadioGroup";
import { __ } from '@wordpress/i18n';
import useIntegrations from "./IntegrationsData";

const Category = (props) => {
	const { setScript, fetching } = useIntegrations();
	const script = props.script;

	const onChangeHandler = (value, property) => {
		let copyScript = {...script};
		copyScript[property] = value;
		setScript(copyScript, props.type);
	}

	const options = {
		statistics: __("Statistics","complianz-gdpr"),
		marketing: __("Marketing","complianz-gdpr"),
	}

	return (
		<>
				<label>{__("Category", "complianz-gdpr")}</label>
				<RadioGroup
					disabled={fetching}
					label={__("Marketing", "complianz-gdpr")} id="category" value={script.category}
					onChange={(value)=>onChangeHandler(value, 'category')}
					defaultValue={"marketing"}
					options={options}
				/>

		</>
	);
}
export default Category;