'use client'; import { useState } from 'react'; import Navigation from '../../../components/Navigation'; import Footer from '../../../components/Footer'; import { useLanguage } from '../../../hooks/useLanguage'; interface ContactPageProps { params: { lang: string; }; } export default function ContactPage({ params }: ContactPageProps) { const { currentLang, setCurrentLang, currentContent, createLocalizedPath } = useLanguage( params.lang, ); const [formData, setFormData] = useState({ name: '', email: '', company: '', phone: '', message: '', }); const handleInputChange = (e: React.ChangeEvent) => { const { name, value } = e.target; setFormData((prev) => ({ ...prev, [name]: value, })); }; const handleSubmit = (e: React.FormEvent) => { e.preventDefault(); console.log('Form submitted:', formData); alert('感谢您的留言,我们会尽快与您联系!'); setFormData({ name: '', email: '', company: '', phone: '', message: '', }); }; return (
{/* Hero Section */}

{currentContent.contact.title}

{currentContent.contact.subtitle}

{/* Contact Content */}
{/* Contact Form */}

发送消息