"use client"; import { motion } from "motion/react"; import { ShimmerButton } from "@/components/magicui/shimmer-button"; import { useRef, useState } from "react"; import { usePortfolioData } from "@/lib/usePortfolioData"; import { ContactForm } from "./ContactForm"; // Importar o novo componente import { ContactInfo } from "./ContactInfo"; // Importar o novo componente export default function Contact() { const { data } = usePortfolioData(); const contactSectionRef = useRef(null); const [formType, setFormType] = useState<"simple" | "advanced">("simple"); // Estado para controlar o tipo de formulário const handleWhatsAppClick = () => { setFormType("simple"); // Redireciona para o formulário simples if (contactSectionRef.current) { contactSectionRef.current.scrollIntoView({ behavior: "smooth" }); } }; const scrollToContact = () => { if (contactSectionRef.current) { contactSectionRef.current.scrollIntoView({ behavior: "smooth" }); } }; if (!data) { return null; // Ou um componente de carregamento/erro } return (
Vamos Conversar

Vamos Conversar

Estou sempre interessado em novos desafios e oportunidades. Vamos discutir como posso ajudar seu projeto?

{/* Contact Info */} {/* Contact Options and Map */}
{" "} {/* Usar o novo componente ContactForm */} {/* Mapa */}

Onde me encontrar

); }