import { TranslatedString, UnwrapKeyError } from "@gnu-taler/taler-util"; import { notifyError, notifyInfo, useTranslationContext } from "@gnu-taler/web-util/browser"; import { VNode, h } from "preact"; import { createNewForm } from "../handlers/forms.js"; export function UnlockAccount({ onAccountUnlocked, onRemoveAccount, }: { onAccountUnlocked: (password: string) => void; onRemoveAccount: () => void; }): VNode { const { i18n } = useTranslationContext() const Form = createNewForm<{ password: string; }>(); return (