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 (