"use client" import { useState } from "react" import { Badge } from "@/components/ui/badge" import { Button } from "@/components/ui/button" import { Input } from "@/components/ui/input" import { Textarea } from "@/components/ui/textarea" import { SectionReveal } from "@/components/ui/section-reveal" import { Phone, Mail, MapPin, Clock3, ArrowRight, CheckCircle2 } from "lucide-react" import homeData from "@/data/home.json" const iconMap: Record = { phone: , mail: , mappin: , clock: , } export function ContactSection() { const { contact } = homeData const sectionBadge = (contact as any).sectionBadge ?? (contact as any).sectionTag const info = ((contact as any).info ?? ((contact as any).infoItems ?? []).map((item: any) => ({ ...item, icon: String(item.icon ?? "").toLowerCase(), sub: item.sub ?? "", }))) as Array<{ icon: string; label: string; value: string; sub?: string }> const submitLabel = (contact.form as any).submitLabel ?? (contact.form as any).submit const [submitted, setSubmitted] = useState(false) const handleSubmit = (e: React.FormEvent) => { e.preventDefault() setSubmitted(true) } return (
{/* Header */}
{sectionBadge}

{contact.title}

{contact.subtitle}

{/* Left: info */}
{info.map((item) => (
{iconMap[item.icon] ?? iconMap.phone}

{item.label}

{item.value}

{item.sub}

))} {/* Trust note */}

响应时效说明

工作时间内,专属顾问将在{" "} 2 小时内 {" "}联系您;非工作时间提交的信息,将在次一工作日上午统一回复。

{/* Right: form */}
{submitted ? (

信息已提交

工作时间内 2 小时响应,非工作时间次一工作日上午回复。

) : (

留下信息,先拿一版初步建议