import { getTranslations, setRequestLocale } from 'next-intl/server'
import { PageShell } from '@/components/PageShell'
import { RegisterForm } from './RegisterForm'

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

  return (
    <PageShell title={t('title')}>
      <div className="box-content">
        <div className="body-box-content info-box-light justified">
          <p>{t('info')}</p>
        </div>
      </div>
      <div className="box-content">
        <div className="body-box-content centered">
          <RegisterForm />
        </div>
      </div>
    </PageShell>
  )
}
