"use client" import { useRouter } from "@repo/i18n/routing" import { useTranslations } from "next-intl" import { useEffect, useTransition } from "react" import { Button } from "../../Design/Button/Button.tsx" import { Typography } from "../../Design/Typography/Typography.tsx" import { MainLayout } from "../../Layout/MainLayout/MainLayout.tsx" import { Section } from "../../Layout/Section/Section.tsx" export interface ErrorServerProps { error: Error & { digest?: string } reset: () => void } export const ErrorServer: React.FC = (props) => { const { error, reset } = props const [isPending, startTransition] = useTransition() const router = useRouter() const t = useTranslations() useEffect(() => { console.error(error) }, [error]) return (
{t("errors.error")} 500 - {t("errors.server-error")}
) }