"use client"; import { useActionState } from "react"; import { submitContact, type ContactFormState } from "@/app/actions"; import { ArrowRight, CheckCircle2, AlertCircle, Phone } from "lucide-react"; const initial: ContactFormState = { ok: false, message: "" }; export function QuickLeadForm({ title, description, buttonLabel = "Beni arayın", }: { title: string; description?: string; buttonLabel?: string; }) { const [state, action, pending] = useActionState(submitContact, initial); return (
{description}
)}