"use client"; import { useEffect, useState } from "react"; export function Footer() { const [hash, setHash] = useState("..."); useEffect(() => { fetch("/api/commit-hash") .then((res) => res.json()) .then((data) => setHash(data.hash)) .catch(() => setHash("unknown")); }, []); return ( ); }