1cf9fd9d8c
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
24 lines
829 B
TypeScript
24 lines
829 B
TypeScript
"use client";
|
||
|
||
import { tr } from "@/i18n/tr";
|
||
import "./globals.css";
|
||
|
||
/** Kök layout hataları için son çare sınırı (kendi <html>/<body> etiketini render eder). */
|
||
export default function GlobalError({ retry }: { error: unknown; retry: () => void }) {
|
||
return (
|
||
<html lang="tr">
|
||
<body className="flex min-h-dvh flex-col items-center justify-center gap-4 p-8 text-center">
|
||
<h1 className="text-2xl font-semibold tracking-tight">{tr.errors.errorTitle}</h1>
|
||
<p className="max-w-md text-muted-foreground">{tr.errors.errorDescription}</p>
|
||
<button
|
||
type="button"
|
||
onClick={() => retry()}
|
||
className="rounded-lg bg-primary px-4 py-2 text-sm font-medium text-primary-foreground"
|
||
>
|
||
{tr.errors.retry}
|
||
</button>
|
||
</body>
|
||
</html>
|
||
);
|
||
}
|