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 (
Precision Diagnostics Portal