diff --git a/components/blocks/InteractiveGermanyMap.tsx b/components/blocks/InteractiveGermanyMap.tsx index f0288f599..9083c3dfd 100644 --- a/components/blocks/InteractiveGermanyMap.tsx +++ b/components/blocks/InteractiveGermanyMap.tsx @@ -4,7 +4,7 @@ import React, { useState } from 'react'; import { motion, AnimatePresence } from 'framer-motion'; import { MapPin, Factory, Zap, CheckCircle2, ArrowUpRight } from 'lucide-react'; import Image from 'next/image'; -import { useRouter, usePathname } from 'next/navigation'; + import Link from 'next/link'; import { AnimatedGlossyBorder } from '@/components/ui/AnimatedGlossyBorder'; import { Location, defaultLocations, minorLocations, projectLocations } from '@/lib/map-data'; @@ -52,8 +52,7 @@ export function InteractiveGermanyMap({ setHoverTimeout(timeout); }; - const router = useRouter(); - const pathname = usePathname(); + const locale = useLocale(); const t = useTranslations('InteractiveGermanyMap'); const tStandard = useTranslations('StandardPage');