import { getTranslations, setRequestLocale } from 'next-intl/server'
import { LoginForm } from './LoginForm'

export default async function LoginPage({ params }: { params: Promise<{ locale: string }> }) {
  const { locale } = await params
  setRequestLocale(locale)
  const t = await getTranslations('Login')

  return (
    <main className="mx-auto max-w-3xl px-4 py-8">
      <h1 className="mb-6 text-center text-2xl font-bold text-amber-500">{t('title')}</h1>
      <LoginForm />
    </main>
  )
}
