/** * Root Layout Component * * © 2025 Netwerk Digitaal Erfgoed & TextPast. All rights reserved. */ import { Outlet, useLocation } from 'react-router-dom'; import { Navigation } from './Navigation'; import { useLanguage } from '../../contexts/LanguageContext'; import './Layout.css'; // Pages that handle their own footer (full-screen apps with sidebars) const PAGES_WITH_CUSTOM_FOOTER = ['/map', '/visualize', '/query-builder', '/linkml', '/ontology', '/conversation']; export function Layout() { const currentYear = new Date().getFullYear(); const { t } = useLanguage(); const location = useLocation(); // Hide global footer on pages that have their own minimal footer const showGlobalFooter = !PAGES_WITH_CUSTOM_FOOTER.includes(location.pathname); return (