import { useState } from 'react' export default function LoginForm({ onSubmit, isLoading, error }) { const [email, setEmail] = useState('') const [password, setPassword] = useState('') const [showPassword, setShowPassword] = useState(false) const handleSubmit = (e) => { e.preventDefault() onSubmit(email, password) } return (
{error && (

{error}

)}
setEmail(e.target.value)} className="appearance-none block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm placeholder-gray-400 focus:outline-none focus:ring-google-blue focus:border-google-blue sm:text-sm transition-colors" placeholder="Enter your email" />
setPassword(e.target.value)} className="appearance-none block w-full px-3 py-2 pr-10 border border-gray-300 rounded-md shadow-sm placeholder-gray-400 focus:outline-none focus:ring-google-blue focus:border-google-blue sm:text-sm transition-colors" placeholder="Enter your password" />
Forgot your password?
) }