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