import Link from 'next/link';
import { getLocale, t } from '@/lib/i18n';

export async function SiteFooter() {
  const locale = await getLocale();

  return (
    <footer className="border-t border-border">
      <div className="mx-auto flex w-full max-w-[1200px] flex-col gap-4 px-6 py-8 text-sm text-muted-foreground sm:flex-row sm:items-center sm:justify-between">
        <p>© {new Date().getFullYear()} Nexumi</p>
        <nav className="flex flex-wrap gap-4">
          <Link href="/status" className="hover:text-foreground">
            {t(locale, 'site.footer.status')}
          </Link>
          <Link href="/impressum" className="hover:text-foreground">
            {t(locale, 'site.footer.impressum')}
          </Link>
          <Link href="/privacy" className="hover:text-foreground">
            {t(locale, 'site.footer.privacy')}
          </Link>
          <Link href="/terms" className="hover:text-foreground">
            {t(locale, 'site.footer.terms')}
          </Link>
          <Link href="/dashboard" className="hover:text-foreground">
            {t(locale, 'site.footer.dashboard')}
          </Link>
        </nav>
      </div>
    </footer>
  );
}
