import { Mail, MapPin, MessageCircle, Phone } from 'lucide-react'; import type { ReactNode } from 'react'; import { cn } from '@/lib/utils'; import type { ContactSection } from '../types'; import { Container, SectionHeading } from '../ui'; function Row({ icon, href, children, }: { icon: ReactNode; href?: string; children: ReactNode; }) { const body = ( <> {icon} {children} ); return (
  • {href ? ( {body} ) : ( {body} )}
  • ); } export function Contact({ section }: { section: ContactSection }) { const { heading, body, email, phone, whatsapp, address } = section.content; const card = section.variant === 'card'; return (
      {whatsapp && ( } href={`https://wa.me/${whatsapp}`} > Chat on WhatsApp )} {email && ( } href={`mailto:${email}`} > {email} )} {phone && ( } href={`tel:${phone.replace(/[^0-9+]/g, '')}`} > {phone} )} {address && ( }> {address} )}
    ); }