import { useState } from 'react'; import { Mail, Lock, X, LogIn } from 'lucide-react'; import { LoginCredentials } from '../types/auth'; interface LoginModalProps { isOpen: boolean; onClose: () => void; onLogin: (credentials: LoginCredentials) => void; isLoading?: boolean; error?: string | null; } export const LoginModal = ({ isOpen, onClose, onLogin, isLoading, error }: LoginModalProps) => { const [email, setEmail] = useState(''); const [password, setPassword] = useState(''); const handleSubmit = (e: React.FormEvent) => { e.preventDefault(); onLogin({ email, password }); }; if (!isOpen) return null; return (

Login

Access your account

setEmail(e.target.value)} placeholder="your@email.com" className="w-full pl-10 pr-4 py-3 rounded-lg bg-background border border-input text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:border-transparent transition-all" required />
setPassword(e.target.value)} placeholder="••••••••" className="w-full pl-10 pr-4 py-3 rounded-lg bg-background border border-input text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:border-transparent transition-all" required />
{error && (
{error}
)}

Admin: tradewithoutstrategy@gmail.com

); };