import { Heading } from "@components/UI/Typography/Heading.tsx"; import { Link } from "@components/UI/Typography/Link.tsx"; import { P } from "@components/UI/Typography/P.tsx"; import newGithubIssueUrl from "@core/utils/github.ts"; import { ExternalLink } from "lucide-react"; import { Trans, useTranslation } from "react-i18next"; export function ErrorPage({ error }: { error: Error }) { const { t } = useTranslation(); if (!error) { return null; } return (
{t("errorPage.title")}

{t("errorPage.description1")}

{t("errorPage.description2")}

Please include the following information in your report:

  • {t("errorPage.reportSteps.step1")}
  • {t("errorPage.reportSteps.step2")}
  • {t("errorPage.reportSteps.step3")}
  • {t("errorPage.reportSteps.step4")}

", logs: error?.stack, })} />, ]} />

]} />

Chirpy the Meshtastic error
{t("errorPage.detailsSummary")} {error?.message && ( <>

{error.message}

// TODO: Use Trans for the label and message together? )} {error?.stack && ( <>

{error.stack}

)} {!error?.message && !error?.stack && (

{t("errorPage.fallbackError", { error: error.toString() })}

)}
); }