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} />
}
