import { getTranslations } from 'next-intl/server'
import { SubmitForm } from '@/components/SubmitForm'

export default async function Home({
  params,
}: {
  params: Promise<{ locale: string }>
}) {
  const { locale } = await params
  const t = await getTranslations({ locale, namespace: 'home' })
  return (
    <main style={{ padding: '2rem' }}>
      <h1>{t('heading')}</h1>
      <SubmitForm />
    </main>
  )
}
