%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/tradesc/www/relax/wp-content/plugins/complianz-gdpr/settings/src/Settings/
Upload File :
Create Path :
Current File : /home/tradesc/www/relax/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;

Zerion Mini Shell 1.0