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/e/x/h/exhehbu/www/wp-content/plugins/complianz-gdpr/settings/src/Settings/AreYouSureModal.js
import Modal from '../Modal';
import DialogContent from '@mui/material/DialogContent';
import DialogActions from '@mui/material/DialogActions';
import {__} from '@wordpress/i18n';

const AreYouSureModal = ({ isOpen, onCancel, onConfirm, children }) => {

	return (
		<Modal isOpen={isOpen} title={__('Are you sure?', 'complianz-gdpr')} onClose={onCancel}>
			<DialogContent>
				{children}
			</DialogContent>
			<DialogActions className={'cmplz-modal-footer'}>
				<button className={"cmplz-button cmplz-button--secondary"} onClick={onCancel}>
					{__('Cancel', 'complianz-gdpr')}
				</button>
				<button className={"cmplz-button cmplz-button--error"} onClick={onConfirm}>
					{__('Confirm', 'complianz-gdpr')}
				</button>
			</DialogActions>
		</Modal>
	);
};

export default AreYouSureModal;