import { Container } from '@/components/ui'; import { getTranslations, setRequestLocale } from 'next-intl/server'; import { Metadata } from 'next'; import TrackedLink from '@/components/analytics/TrackedLink'; import { MapPin, Navigation, ArrowUpRight } from 'lucide-react'; import { getButtonClasses, ButtonOverlay } from '@/components/ui/Button'; import { SITE_URL } from '@/lib/schema'; import Image from 'next/image'; import { standorteData } from '@/lib/standorte-data'; import { InteractiveGermanyMap } from '@/components/blocks/InteractiveGermanyMap'; interface PageProps { params: Promise<{ locale: string; }>; } export async function generateMetadata({ params }: PageProps): Promise { const { locale } = await params; if (locale !== 'de' && locale !== 'en') return {}; return { title: locale === 'de' ? 'Standorte | E-TIB Gruppe' : 'Locations | E-TIB Group', description: locale === 'de' ? 'Die operativen Standorte der E-TIB Gruppe: Guben und Bülstedt.' : 'The operational locations of the E-TIB Group: Guben and Bülstedt.', alternates: { canonical: `${SITE_URL}/${locale}/standorte`, languages: { de: `${SITE_URL}/de/standorte`, en: `${SITE_URL}/en/standorte`, 'x-default': `${SITE_URL}/en/standorte`, }, }, }; } export default async function StandorteOverview(props: { params: Promise<{ locale: string }> }) { const { locale } = await props.params; const safeLocale = locale === 'de' ? 'de' : 'en'; setRequestLocale(safeLocale); const t = await getTranslations('StandardPage'); return (
{/* Map Hero Section */} {/* Main Content Area */}
{standorteData.map((standort) => (
{/* Image Section */}
{standort.name}
{/* Location Badge */}
{standort.address.city}
{/* Content Section */}

{standort.name}

{standort.description[safeLocale]}

{/* Meta Data */}
{safeLocale === 'de' ? 'Adresse' : 'Address'} {standort.address.street}, {standort.address.city}
))}
{/* Support Section */}

{t('nextProjectTitle')}

{t('nextProjectDesc')}

{t('contactUs')}
); }