import React, { useState } from 'react'; import { Button } from './Button'; import { Input } from './Input'; import styles from './LoginCard.module.css'; interface LoginCardProps { onLogin: (email: string, pass: string, portal?: 'customer' | 'internal') => void; loading?: boolean; portal?: 'customer' | 'internal'; error?: string | null; } export const LoginCard: React.FC = ({ onLogin, loading, portal, error }) => { const [email, setEmail] = useState(''); const [password, setPassword] = useState(''); const handleSubmit = (e: React.FormEvent) => { e.preventDefault(); onLogin(email, password, portal); }; return (
NEXUS

Active Workspace Intelligence

{error && (
⚠️ {error}
)}
setEmail(e.target.value)} required autoComplete="email" /> setPassword(e.target.value)} required autoComplete="current-password" />
Having trouble?{' '} { alert("Support Email: support@nexusai3sc.com\n\nPlease reach out to us if you need assistance."); }} > Contact Administrator
POWERED BY 3SC
); };