import { siteConfig } from '@/lib/config'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faGithub, faTwitter, faMastodon, faGitAlt, faLinkedin } from '@fortawesome/free-brands-svg-icons'; import { faEnvelope } from '@fortawesome/free-solid-svg-icons'; // Calculate year at build time for PPR compatibility const currentYear = new Date().getFullYear(); export function SiteFooter() { const { social } = siteConfig; const items = [ social.github && { key: 'github', href: social.github, label: 'GitHub', icon: faGithub }, social.twitter && { key: 'twitter', href: `https://twitter.com/${social.twitter.replace('@', '')}`, label: 'Twitter', icon: faTwitter }, social.mastodon && { key: 'mastodon', href: social.mastodon, label: 'Mastodon', icon: faMastodon }, social.gitea && { key: 'gitea', href: social.gitea, label: 'Gitea', icon: faGitAlt }, social.linkedin && { key: 'linkedin', href: social.linkedin, label: 'LinkedIn', icon: faLinkedin }, social.email && { key: 'email', href: `mailto:${social.email}`, label: 'Email', icon: faEnvelope } ].filter(Boolean) as { key: string; href: string; label: string; icon: any; }[]; return ( ); }