diff --git a/app/components/navbar/Navbar.tsx b/app/components/navbar/Navbar.tsx index 6099cd4..e4b8e2e 100644 --- a/app/components/navbar/Navbar.tsx +++ b/app/components/navbar/Navbar.tsx @@ -4,8 +4,10 @@ import Image from "next/image"; import { useEffect, useRef, useState } from "react"; import { HiMenu, HiX } from "react-icons/hi"; import { motion, AnimatePresence } from "framer-motion"; -// import { Globe } from "lucide-react"; import GeomaticLogo from "@/public/images/geomatic-logo-white.png"; +import { IoSparklesSharp } from "react-icons/io5"; +import { Modal } from "@/app/components/modals/Modal"; +import Chatbot from "../chatbot/ChatBot"; const routes = [ { @@ -35,6 +37,7 @@ const mobileRoutes = [ export default function Navbar() { const [dropNav, setDropNav] = useState(false); + const [isChatOpen, setIsChatOpen] = useState(false); const [showActions, setShowActions] = useState(false); // Refs @@ -66,6 +69,11 @@ export default function Navbar() { } }; + // toggleChat handler + const toggleChat = () => { + setIsChatOpen(!isChatOpen); + }; + return ( <> + {/* === MODALS === */} + setIsChatOpen(false)}> + + ); }