/** * Footer — minimal footer with photographer name + social links. * Reads configuration from gallery.yaml via getConfig(). */ import Link from 'next/link'; import { getConfig } from '@/lib/config'; import { getServerDictionary } from '@/lib/i18n/server'; import { privacyAvailable } from '@/lib/privacy'; import EmailLink from './EmailLink'; import { encodeEmail } from '@/lib/emailObfuscation'; export function Footer() { const config = getConfig(); const { footer, legal, contact } = config; const t = getServerDictionary(); const privacy = privacyAvailable(config); // Don't render if there is no footer config and no legal or contact page to link if ( !legal.enabled && !contact.enabled && !privacy && (!footer || (!footer.name && !footer.instagram && !footer.email && !footer.website)) ) { return null; } return ( ); }