import React, { useState } from 'react';
import './Modal.css'; // Asegúrate de tener el estilo del modal

export default function Modal({ isOpen, closeModal }) {
  return (
    isOpen && (
      <div className="modal-overlay">
        <div className="modal-box">
          <h3>Enter your email address and we'll send a new password to your email.</h3>
          <input
            type="email"
            placeholder="Email"
            className="modal-input"
          />
          <button onClick={closeModal} className="btn btn--primary">
            Send
          </button>
        </div>
      </div>
    )
  );
}
