import React from "react";
import { useState } from "react";


function ModalErro  ({showModal, setShowModal}) {
//const [showModal, setShowModal] = useState()


return(

<div>

{showModal ? 
 
<div className="modal-overlay">

          <div className="modal-content">
            <div className="modal-header">
              <h5 className="modal-title">Atenção</h5>
              <button
               
                className="modal-close-btn"
              >
                ×
              </button>
            </div>

            <div className="modal-body">
              
            </div>

            <div className="modal-footer">
              <button
                className="modal-confirm-btn"
                onClick={setShowModal(false)}
              >
                Fechar
              </button>
            </div>
          </div>
        </div>
    : null
}
</div>

);


}



export default ModalErro