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/ChangeStatus.js
import { __ } from '@wordpress/i18n';
const ChangeStatus = (props) => {
	let statusClass = props.item.status==1 ? 'button button-primary cmplz-status-allowed' : 'button button-default cmplz-status-revoked';
	let label = props.item.status==1 ? __("Revoke", "complianz-gdpr") : __("Allow", "complianz-gdpr");
	return (
		<button onClick={ () => props.onChangeHandlerDataTableStatus( props.item.status, props.item, 'status' ) } className={statusClass}>{label}</button>
	)
}
export default ChangeStatus