import { getOllamaURL } from "~/services/ollama" import { useTranslation } from "react-i18next" import { useQuery } from "@tanstack/react-query" import { Skeleton } from "antd" import { cleanUrl } from "@/libs/clean-url" export const AboutApp = () => { const { t } = useTranslation("settings") const { data, status } = useQuery({ queryKey: ["fetchOllamURL"], queryFn: async () => { const chromeVersion = chrome.runtime.getManifest().version try { const url = await getOllamaURL() const req = await fetch(`${cleanUrl(url)}/api/version`) if (!req.ok) { return { ollama: "N/A", chromeVersion } } const res = (await req.json()) as { version: string } return { ollama: res.version, chromeVersion } } catch { return { ollama: "N/A", chromeVersion } } } }) return (
{status === "pending" && } {status === "success" && (

{t("about.heading")}

{t("about.chromeVersion")} {data.chromeVersion}
{t("about.ollamaVersion")} {data.ollama}

{t("about.support")}

{t("about.koFi")} {t("about.githubSponsor")}
)}
) }