import { useEffect, useState } from "react"; import { GIT_COMMIT_URL, GIT_VERSION_URL } from "../../constants/api.js"; export function BotConfig() { const [version, setVersion] = useState("v0.0.0"); const [commit, setCommit] = useState(null); useEffect(() => { fetch(GIT_VERSION_URL).then(response => response.json()).then(data => setVersion(data.name)); fetch(GIT_COMMIT_URL).then(response => response.json()).then(data => setCommit(data)); }, []); return (

🔥更新看板

最新版本

当前最新版本为:{ version }

手动更新

R 插件的自动选择更新 / 强制更新

最近更新

[{ commit?.author }]{ commit?.message }
); }