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

export default async function StatusPage({
  params,
}: {
  params: Promise<{ locale: string; uuid: string }>
}) {
  const { locale, uuid } = await params
  const t = await getTranslations({ locale, namespace: 'status' })

  return (
    <main className="flex flex-col items-center px-6 py-16">
      <h1 className="text-2xl font-bold tracking-tight text-gray-900 dark:text-gray-50 mb-10">
        {t('heading')}
      </h1>
      <StatusView uuid={uuid} />
    </main>
  )
}
