'use client'; import { useTranslations } from 'next-intl'; import { useState } from 'react'; import { useRouter } from 'next/navigation'; export default function CuratorPage() { const t = useTranslations('Curator'); const router = useRouter(); const [username, setUsername] = useState(''); const [password, setPassword] = useState(''); const [error, setError] = useState(''); const handleLogin = (e: React.FormEvent) => { e.preventDefault(); // Mock validation matching provided credentials for testing if (username === 'elpatron' && password === 'surf&4033') { router.push('/en/curator/specials'); } else { setError('Login failed'); } }; return (

{t('loginTitle')}

{error &&
{error}
}
setUsername(e.target.value)} placeholder={t('loginUsername')} style={{ width: '100%', padding: '0.5rem', border: '1px solid #ccc', borderRadius: '4px' }} />
setPassword(e.target.value)} placeholder={t('loginPassword')} style={{ width: '100%', padding: '0.5rem', border: '1px solid #ccc', borderRadius: '4px' }} />
); }