import React from 'react'; import { localizePath, stripLangPrefix, useLang } from '../i18n'; const Footer = () => { const currentYear = new Date().getFullYear(); const lang = useLang(); // Same reasoning as the /#section nav links below: this footer is shared with // /privacy and /platforma, so the logo needs a real href to get home from // there. On the homepage that href would mean a full reload, so intercept the // click and scroll to the top instead. const handleLogoClick = (e: React.MouseEvent) => { if (stripLangPrefix(window.location.pathname) !== '/') return; e.preventDefault(); window.scrollTo({ top: 0, behavior: 'smooth' }); }; return ( ); }; export default Footer;