import { Button } from "@/components/ui/button" import { useTranslation } from "react-i18next" import { useNavigate } from "react-router-dom" interface ErrorPageProps { code?: string | number message?: string } export default function ErrorPage({ code = "500", message }: ErrorPageProps) { const navigate = useNavigate() const { t } = useTranslation() return (

{code}

{message || t("error.somethingWentWrong")}

) }