import Button from "react-bootstrap/Button"; import Form from "react-bootstrap/Form"; import Modal from "react-bootstrap/Modal"; import React, { useState } from "react"; type AuthProps = { onLogin: (email: string, password: string) => void; show: boolean; }; const AuthModal: React.FC = ({ onLogin, show }) => { const [email, setEmail] = useState(""); const [password, setPassword] = useState(""); return ( Modal title
{ e.preventDefault(); onLogin(email, password); }} > Email address setEmail(e.target.value)} /> We'll never share your email with anyone else. Password setPassword(e.target.value)} />
); }; export default AuthModal;