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

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