import Link from 'next/link';
import { site } from '@/lib/site';

export function SiteFooter() {
  const year = new Date().getFullYear();

  return (
    <footer className="site-footer">
      <div>
        <p className="footer-label">Status</p>
        <p>{site.tagline}</p>
      </div>
      <div>
        <p className="footer-label">Build</p>
        <p>
          {year} • {process.env.NEXT_PUBLIC_BUILD_COMMIT || 'local'} • iteration{' '}
          {process.env.NEXT_PUBLIC_BUILD_ITERATION || '0'}
        </p>
      </div>
      <div>
        <p className="footer-label">Contact</p>
        <p>
          <Link href="/contact">{site.contact.email}</Link>
          <br />
          {site.contact.phone}
        </p>
      </div>
    </footer>
  );
}
