import { useState } from 'react'; import { useNavigate } from 'react-router'; import { useAuth } from '@/providers/auth-provider'; import { Button } from '@/components/base/buttons/button'; import { SocialButton } from '@/components/base/buttons/social-button'; import { Input } from '@/components/base/input/input'; const features = [ { title: 'Unified Lead Inbox', description: 'All channels in one workspace', }, { title: 'Campaign Intelligence', description: 'Real-time performance tracking', }, { title: 'Speed to Contact', description: 'Automated assignment and outreach', }, ]; type RoleTab = 'executive' | 'cc-agent' | 'admin'; export const LoginPage = () => { const { login, setRole } = useAuth(); const navigate = useNavigate(); const [activeTab, setActiveTab] = useState('executive'); const [email, setEmail] = useState(''); const [password, setPassword] = useState(''); const handleTabChange = (tab: RoleTab) => { setActiveTab(tab); setRole(tab); }; const handleSubmit = (event: React.FormEvent) => { event.preventDefault(); login(); navigate('/'); }; const handleGoogleSignIn = () => { login(); navigate('/'); }; return (
{/* Left panel — 60% — hidden on mobile */}
{/* Abstract corner gradients */}