import { WalletDiagnostics } from "@gnu-taler/taler-util"; import { h } from "preact"; import { JSX } from "preact/jsx-runtime"; import { PageLink } from "../renderHtml"; interface Props { timedOut: boolean; diagnostics: WalletDiagnostics | undefined } export function Diagnostics({timedOut, diagnostics}: Props): JSX.Element | null { if (timedOut) { return
Diagnostics timed out. Could not talk to the wallet backend.
; } if (diagnostics) { if (diagnostics.errors.length === 0) { return null; } else { return (Problems detected:
Please check in your about:config
settings that you
have IndexedDB enabled (check the preference name{" "}
dom.indexedDB.enabled
).
Your wallet database is outdated. Currently automatic migration is
not supported. Please go{" "}
Running diagnostics ...
; }