"use client"; import { motion } from "framer-motion"; import { cn } from "../../utils/cn"; import { Reveal } from "../Reveal"; import { ProjectType } from "./types"; import { Mail, MessageSquare, ArrowLeft, Send, Phone, User as UserIcon, Calendar, Layers, } from "lucide-react"; interface DirectMessageFlowProps { name: string; setName: (val: string) => void; email: string; setEmail: (val: string) => void; phone: string; setPhone: (val: string) => void; role: string; setRole: (val: string) => void; company: string; setCompany: (val: string) => void; projectType: ProjectType; setProjectType: (val: ProjectType) => void; deadline: string; setDeadline: (val: string) => void; message: string; setMessage: (val: string) => void; onBack: () => void; onSubmit: () => void; isSubmitting: boolean; error?: string | null; } export const DirectMessageFlow = ({ name, setName, email, setEmail, phone, setPhone, role, setRole, company, setCompany, projectType, setProjectType, deadline, setDeadline, message, setMessage, onBack, onSubmit, isSubmitting, error, }: DirectMessageFlowProps) => { return (
{error && (

Übertragungsfehler

{error}

Status: FEHLER_BEI_SEQUENZ_INIT
)}
DIREKTANFRAGE // SCHRITT_01

Lassen Sie uns sprechen.

Senden Sie mir eine Nachricht und ich melde mich zeitnah zurück.

{/* Section: Mission Focus */}
{(["website", "web-app", "ecommerce"] as ProjectType[]).map( (type) => { const labels = { website: "Website", "web-app": "Web Application", ecommerce: "E-Commerce", }; return ( ); }, )}
{/* Section: Identity Details */}
setName(e.target.value)} placeholder="Max Mustermann" className="w-full bg-slate-50 border border-slate-100 rounded-xl px-4 py-3 text-base font-medium focus:outline-none focus:ring-2 focus:ring-slate-900/5 focus:border-slate-900 transition-all" />
setCompany(e.target.value)} placeholder="Beispiel GmbH" className="w-full bg-slate-50 border border-slate-100 rounded-xl px-4 py-3 text-base font-medium focus:outline-none focus:ring-2 focus:ring-slate-900/5 focus:border-slate-900 transition-all" />
setEmail(e.target.value)} placeholder="name@firma.de" className="w-full bg-slate-50 border border-slate-100 rounded-xl px-4 py-3 text-base font-medium focus:outline-none focus:ring-2 focus:ring-slate-900/5 focus:border-slate-900 transition-all" />
setPhone(e.target.value)} placeholder="+49 123 456789" className="w-full bg-slate-50 border border-slate-100 rounded-xl px-4 py-3 text-base font-medium focus:outline-none focus:ring-2 focus:ring-slate-900/5 focus:border-slate-900 transition-all" />
{/* Section: Additional Context */}
setRole(e.target.value)} placeholder="z.B. Gründer, Marketing Lead..." className="w-full bg-slate-50 border border-slate-100 rounded-xl px-4 py-3 text-base font-medium focus:outline-none focus:ring-2 focus:ring-slate-900/5 focus:border-slate-900 transition-all" />
{/* Section: Payload */}