20 lines
514 B
TypeScript
20 lines
514 B
TypeScript
"use client";
|
||
import { useI18n } from "@/components/I18nProvider";
|
||
|
||
export default function ErrorPage({ retry }: { retry: () => void }) {
|
||
const { t } = useI18n();
|
||
return (
|
||
<main className="section page-content">
|
||
<h1>{t("Lost connection.")}</h1>
|
||
<p>
|
||
{t(
|
||
"We couldn’t load this part of the world. Check your connection and try again.",
|
||
)}
|
||
</p>
|
||
<button className="button primary" onClick={retry}>
|
||
{t("Try again")}
|
||
</button>
|
||
</main>
|
||
);
|
||
}
|