import { Fragment, h } from "preact"; import { useOfficer } from "../hooks/useOfficer.js"; import { HandleAccountNotReady } from "./HandleAccountNotReady.js"; import { useTranslationContext } from "@gnu-taler/web-util/browser"; import { uiSettings } from "../settings.js"; import { getInitialBackendBaseURL } from "../hooks/useBackend.js"; export function Officer() { const officer = useOfficer(); const { i18n } = useTranslationContext() if (officer.state !== "ready") { return ; } const url = new URL(getInitialBackendBaseURL()) const signupEmail = uiSettings.signupEmail ?? `aml-signup@${url.hostname}` return (

Public key

{officer.account.id}

Request account activation

); }