'use client'; import { useState } from 'react'; import { MessageCircle, Briefcase, Settings, Lightbulb, Phone, Mail } from 'lucide-react'; export interface ContactModalProps { isOpen: boolean; onClose: () => void; defaultType?: string; title?: string; } export default function ContactModal({ isOpen, onClose, defaultType = 'general', title = 'Связаться с нами' }: ContactModalProps) { const [formData, setFormData] = useState({ name: '', email: '', phone: '', company: '', type: defaultType, message: '' }); const contactTypes = [ { id: 'general', label: 'Общие вопросы', icon: }, { id: 'sales', label: 'Отдел продаж', icon: }, { id: 'support', label: 'Техподдержка', icon: }, { id: 'development', label: 'Разработка', icon: }, { id: 'consultation', label: 'Консультация', icon: }, ]; const handleInputChange = (e: React.ChangeEvent) => { const { name, value } = e.target; setFormData(prev => ({ ...prev, [name]: value })); }; const handleSubmit = (e: React.FormEvent) => { e.preventDefault(); alert(`Спасибо за обращение, ${formData.name}! Мы свяжемся с вами в ближайшее время.`); setFormData({ name: '', email: '', phone: '', company: '', message: '', type: defaultType }); onClose(); }; if (!isOpen) return null; return ( {title} × Тип обращения {contactTypes.map(type => ( {type.icon} {type.label} ))} Имя * Email * Телефон Компания Сообщение * Отправить Отмена Или свяжитесь с нами напрямую: +7 (495) 123-45-67 info@gundyrev.ru ); }
Или свяжитесь с нами напрямую: +7 (495) 123-45-67 info@gundyrev.ru