aboutsummaryrefslogtreecommitdiff
path: root/packages/demobank-ui/src/components/ErrorLoadingWithDebug.tsx
blob: 25e79e9e0057631f641504750324dd7ce7e9ab86 (plain)
1
2
3
4
5
6
7
8
9
import { TalerError } from "@gnu-taler/taler-util";
import { ErrorLoading } from "@gnu-taler/web-util/browser";
import { VNode, h } from "preact";
import { usePreferences } from "../hooks/preferences.js";

export function ErrorLoadingWithDebug({ error }: { error: TalerError }): VNode {
  const [pref] = usePreferences();
  return <ErrorLoading error={error} showDetail={pref.showDebugInfo} />
}