---
import { useTranslations, type Locale } from "../i18n/ui";
interface Props { locale: Locale; }
const { locale } = Astro.props;
const t = useTranslations(locale);
const year = new Date().getFullYear();
---
<footer class="mt-auto border-t border-line bg-mantle">
  <div class="mx-auto flex max-w-5xl flex-col items-center gap-2 px-4 py-8 text-sm text-overlay">
    <div class="flex gap-5">
      <a href="https://github.com/veeso/termscp" class="hover:text-text">GitHub</a>
      <a href="https://crates.io/crates/termscp" class="hover:text-text">crates.io</a>
      <a href="https://ko-fi.com/veeso" class="hover:text-text">{t("footer.support")}</a>
    </div>
    <p>© {year} Christian Visintin · {t("footer.rights")}</p>
  </div>
</footer>
