diff --git a/site/components/common/Footer/Footer.tsx b/site/components/common/Footer/Footer.tsx index 674d53b7e..5e6a4b7d1 100644 --- a/site/components/common/Footer/Footer.tsx +++ b/site/components/common/Footer/Footer.tsx @@ -9,6 +9,7 @@ import { Logo, Container } from '@components/ui' import { I18nWidget } from '@components/common' import ThemeSwitcher from '@components/ui/ThemeSwitcher' import s from './Footer.module.css' +import navBarLinks from '../../../static_data/navBarLinks.json' interface Props { className?: string @@ -16,29 +17,18 @@ interface Props { pages?: Page[] } -const links = [ - { - name: 'Home', - url: '/', - }, - { - name: 'About', - url: '/about' - }, - { - name: 'News', - url: '/news' - }, - { - name: 'Contact', - url: '/contact' - } -] +interface FooterLink { + label: string + href: string +} const Footer: FC = ({ className, pages }) => { const { sitePages } = usePages(pages) const rootClassName = cn(s.root, className) + const { locale = 'it' } = useRouter() + const links = navBarLinks[locale as keyof typeof navBarLinks] + return (