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

export default async function RecoverPage({ params }: { params: Promise<{ locale: string }> }) {
  const { locale } = await params
  setRequestLocale(locale)
  const t = await getTranslations('Recover')
  return (
    <PageShell title={t('title')}>
      <div className="box-content">
        <div className="title-box-content">
          <h2>{t('type')}</h2>
        </div>
        <div className="body-box-content centered">
          <RecoverForm />
        </div>
      </div>
    </PageShell>
  )
}
