"use client"; import { useTranslations } from "next-intl"; /** * Server Error Page — P-1 * * Per-page error boundary for unrecoverable errors within the * dashboard layout. Falls back to global-error.tsx if this fails. */ interface ErrorProps { error: Error & { digest?: string }; reset: () => void; } export default function Error({ error, reset }: ErrorProps) { const t = useTranslations("publicSystem"); const tc = useTranslations("common"); return (

{t("error.title")}

{t("error.description")}

{error?.digest && (

{t("error.errorId", { id: error.digest })}

)} {process.env.NODE_ENV === "development" && error?.message && (
          {error.message}
        
)}
{tc("goToDashboard")} {t("error.systemStatus")}
); }