import { Mail, User } from "lucide-react"; import { useAuthStore } from "@/stores/auth-store"; export function LoginModal() { const authStore = useAuthStore(); const handleOfflineLogin = () => { if (authStore.offlineUsername.trim()) { authStore.performOfflineLogin(); } }; const handleKeyPress = (e: React.KeyboardEvent) => { if (e.key === "Enter") { handleOfflineLogin(); } }; if (!authStore.isLoginModalOpen) return null; return (
Choose your preferred login method
Your verification code
Visit{" "} {authStore.deviceCodeData.verificationUri} {" "} and enter the code above
{authStore.msLoginStatus}