import React, { useState } from 'react'; import { useAuth } from './useAuth'; import { Activity } from 'lucide-react'; export default function LoginScreen() { const [email, setEmail] = useState(''); const [password, setPassword] = useState(''); const [error, setError] = useState(''); const { login } = useAuth(); const handleLogin = (e) => { e.preventDefault(); const success = login(email, password); if (!success) setError("Invalid credentials. Use doctor@clinic.com / password123"); }; return (

PNEUMONIA VISION AI

Precision Diagnostics Portal

{error && (
{error}
)}
setEmail(e.target.value)} placeholder="doctor@clinic.com" />
setPassword(e.target.value)} placeholder="••••••••" />
); }