import type { ErrorComponentProps } from "@tanstack/solid-router"; import { Show } from "solid-js"; import { useI18n } from "@/i18n"; export function ErrorDetails( properties: ErrorComponentProps & { title: string; explainer: string }, ) { // Log the error so we can view it in the console and it doesn't get swallowed console.error("ErrorDetails", properties.error); const { t } = useI18n(); return ( <>

{properties.title}

{properties.explainer}

{t("error-technical-details")}
{properties.error.stack}
{JSON.stringify(properties.info, null, 2)}
); }