import React, { useState } from 'react'; interface AdminLoginProps { onLoginSuccess: () => void; onCancel: () => void; } const AdminLogin: React.FC = ({ onLoginSuccess, onCancel }) => { const [userId, setUserId] = useState(''); const [password, setPassword] = useState(''); const [error, setError] = useState(''); const [isProcessing, setIsProcessing] = useState(false); const handleSubmit = (e: React.FormEvent) => { e.preventDefault(); setIsProcessing(true); setError(''); // Aapka secret login setTimeout(() => { if (userId.toLowerCase() === 'admin' && password === 'aditya@77') { onLoginSuccess(); } else { setError('Galat ID ya Password! Phir se try karo.'); setIsProcessing(false); } }, 1200); }; return (

Owner Terminal

Authentication Required

setUserId(e.target.value)} className="w-full bg-[#020617] border border-slate-800 rounded-2xl px-6 py-4 text-white focus:border-indigo-500 outline-none transition-all placeholder:text-slate-800" placeholder="Username (admin)" required /> setPassword(e.target.value)} className="w-full bg-[#020617] border border-slate-800 rounded-2xl px-6 py-4 text-white focus:border-indigo-500 outline-none transition-all placeholder:text-slate-800" placeholder="Password (aditya@77)" required /> {error &&

{error}

}
); }; export default AdminLogin;