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" import { Descriptions } from "antd" 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.support")}

)}
) }