"use client"; import { config } from "@/lib/config"; import { Link } from "@/lib/navigation"; import { useTranslations } from "next-intl"; import { useEffect, useState } from "react"; export default function AppFooter() { const [version, setVersion] = useState(""); const t = useTranslations("About"); useEffect(() => { fetch("/api/version") .then((res) => res.json()) .then((data) => setVersion(data.version)) .catch(() => setVersion("")); }, []); if (!config.credits.enabled) return null; return ( ); }