import { siteConfig } from '@/lib/config'; import { FaGithub, FaTwitter, FaMastodon, FaGit, FaLinkedin } from 'react-icons/fa'; import { FiMail } from 'react-icons/fi'; // 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: FaGit }, social.linkedin && { key: 'linkedin', href: social.linkedin, label: 'LinkedIn', icon: FaLinkedin }, social.email && { key: 'email', href: `mailto:${social.email}`, label: 'Email', icon: FiMail } ].filter(Boolean) as { key: string; href: string; label: string; icon: any; }[]; return ( ); }