"use client" import { useEffect } from "react" import { useLocation } from "react-router-dom" import ReCAPTCHA from "react-google-recaptcha" import { motion, useAnimation } from "framer-motion" import { useInView } from "react-intersection-observer" import useRecaptcha from "./Recaptcha/useRecaptcha" import { img10 } from "./asset" const ContactForm = () => { const { capchaToken, handleRecaptcha } = useRecaptcha() const location = useLocation() const controls = useAnimation() const [ref, inView] = useInView({ threshold: 0.1, // Trigger when 10% of the element is in view }) useEffect(() => { if (inView) { controls.start("visible") } else { controls.start("hidden") } }, [controls, inView]) useEffect(() => { if (location.hash) { const element = document.querySelector(location.hash) if (element) { element.scrollIntoView({ behavior: "smooth" }) } } }, [location]) const textVariants = { hidden: { opacity: 0, x: -50 }, visible: { opacity: 1, x: 0, transition: { duration: 0.8, ease: "easeOut" } }, } const formVariants = { hidden: { opacity: 0, y: 50 }, visible: { opacity: 1, y: 0, transition: { duration: 0.8, ease: "easeOut" } }, } return (
{/* Left Section */}

Isi formulir di samping ini dan kami akan menghubungi Anda secepat mungkin

Kami percaya bahwa kolaborasi adalah kunci kesuksesan. Hubungi kami hari ini, dan mari wujudkan masa depan bisnis Anda bersama Rekan AI!

{/* Form Section */}

Hubungi Tim Terbaik Kami

Silakan isi data diri Anda pada formulir di bawah ini

{ e.target.value = e.target.value.replace(/[^0-9]/g, "") }} />
) } export default ContactForm