%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/tradesc/www/relax/wp-content/plugins/really-simple-ssl/settings/src/Modal/
Upload File :
Create Path :
Current File : /home/tradesc/www/relax/wp-content/plugins/really-simple-ssl/settings/src/Modal/ModalControl.js

import useModal from "./ModalData";

/**
 * Button to open the modal
 * @param props
 * @returns {JSX.Element}
 * @constructor
 */
const ModalControl = (props) => {
    const {handleModal} = useModal();
    const onClickHandler = () => {
        handleModal(true, props.modalData, props.item );
    }

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

Zerion Mini Shell 1.0