'use client' import React from 'react' import { usePathname } from 'next/navigation' import { MapPin, Phone, Mail, Clock } from 'lucide-react' import { motion } from 'framer-motion' export const ContactSectionClient: React.FC = ({ address, phone, email, hours, formNode, }) => { const pathname = usePathname() const isDe = pathname?.split('/').filter(Boolean)[0] === 'de' return (
{/* Lewa kolumna: Informacje kontaktowe */}

{isDe ? 'Kontaktinformationen' : 'Dane kontaktowe'}

{address && (

{isDe ? 'Adresse' : 'Adres'}

{address}

)} {phone && (

{isDe ? 'Telefon' : 'Telefon'}

{phone}
)} {email && (

{isDe ? 'E-Mail' : 'E-mail'}

{email}
)} {hours && (

{isDe ? 'Öffnungszeiten' : 'Godziny pracy'}

{hours}

)}
{/* Prawa kolumna: Formularz kontaktowy */}

{isDe ? 'Schreiben Sie uns' : 'Napisz do nas'}

{formNode}
) }