"use client"; import React, { useState } from "react"; import { ChevronRight, Gem } from "lucide-react"; import authAxios from "@/utils/axios"; import Image from "next/image"; const PremiumBanner = () => { const [formData, setFormData] = useState({ first_name: "", last_name: "", email: "", phone_number: "", }); const [message, setMessage] = useState(""); const handleInputChange = (e) => { const { name, value } = e.target; setFormData((prevState) => ({ ...prevState, [name]: value, })); }; const handleSubmit = async (e) => { e.preventDefault(); try { const response = await authAxios.post( "/consultation/booking/create/", formData ); if (response.status === 201) { setFormData({ first_name: "", last_name: "", email: "", phone_number: "", }); setMessage("Consultation experts will contact you shortly."); setTimeout(() => { setMessage(""); }, 5000); } else { setMessage("An error occurred. Please try again."); } } catch (error) { console.error("Error submitting form:", error); setMessage("An error occurred. Please try again."); } }; return (
{/* Left: Form Section */}

Book a Free Consultation

Get expert guidance tailored to your needs.

{message && (

{message}

)}
{/* Right: Benefits & App Download */}

Why Choose Our Consultation?

Gain expert insights and personalized guidance.

  • Expert guidance from experienced professionals
  • Tailored advice for your specific needs
  • Unlock clarity and direction in life
  • Free initial text-based consultation
); }; export default PremiumBanner;