import { getTranslations } from 'next-intl/server';

export default async function NotFound() {
  const t = await getTranslations('errors');

  return (
    <main className="flex min-h-screen flex-col items-center justify-center gap-4 p-6 text-center">
      <h1 className="text-4xl font-bold">{t('title404')}</h1>
      <p className="text-muted-foreground">{t('message404')}</p>
      <a href="/" className="text-sm underline underline-offset-4">
        {t('backHome')}
      </a>
    </main>
  );
}
