import { useState } from "react" import { AnimatePresence, motion } from "motion/react" import { Building, CheckCircle2, Loader2, Mail, Phone, Send } from "lucide-react" import { Button } from "@/components/ui/button" import { Input, Textarea } from "@/components/ui/input" import { Section } from "@/components/ui/section" import { SectionHeading } from "@/components/ui/section-heading" import { Typography } from "@/components/ui/typography" import { EASE_OUT_EXPO } from "@/lib/motion" import type { LucideIcon } from "lucide-react" const EMPTY_FORM = { companyName: '', contactName: '', email: '', phone: '', message: '', } /** 도입 문의 폼. 백엔드 미연결 — 제출은 데모 처리(1.2초 후 성공 화면). */ export function Contact() { const [formData, setFormData] = useState(EMPTY_FORM) const [status, setStatus] = useState<'idle' | 'submitting' | 'success'>('idle') const handleSubmit = (e: React.FormEvent) => { e.preventDefault() if (!formData.companyName || !formData.contactName || !formData.email || !formData.phone) { return } setStatus('submitting') setTimeout(() => setStatus('success'), 1200) } const handleChange = (e: React.ChangeEvent) => { const { name, value } = e.target setFormData((prev) => ({ ...prev, [name]: value })) } const submitting = status === 'submitting' return (
} >
{status !== 'success' ? (