/** * 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'; export function Footer() { const config = getConfig(); const { footer, legal } = config; const t = getServerDictionary(); // Don't render if no footer config AND no legal config if ( !legal.enabled && (!footer || (!footer.name && !footer.instagram && !footer.email && !footer.website)) ) { return null; } return ( ); }