import { useTranslationContext } from "../index.browser.js"; import { h } from "preact"; export function Footer({ testingUrlKey, VERSION, GIT_HASH }: { VERSION?: string, GIT_HASH?: string, testingUrlKey?: string }) { const { i18n } = useTranslationContext() const testingUrl = (testingUrlKey && typeof localStorage !== "undefined") && localStorage.getItem(testingUrlKey) ? localStorage.getItem(testingUrlKey) ?? undefined : undefined const versionText = VERSION ? GIT_HASH ? Version {VERSION} ({GIT_HASH.substring(0, 8)}) : VERSION : ""; return ( ); }