import { Disclosure } from "@headlessui/react"; import clsx from "clsx"; import Image from "next/image"; import { useRouter } from "next/router"; import { useState } from "react"; import { FaBars, FaChevronRight, FaTimes } from "react-icons/fa"; import GlowWrapper from "./GlowWrapper"; import CycleIcons from "./motions/CycleIcons"; import FadeIn from "./motions/FadeIn"; import PrimaryButton from "./PrimaryButton"; import TextButton from "./TextButton"; import BlogsIcon from "../../public/icons/icon-blogs.svg"; import DocsIcon from "../../public/icons/icon-docs.svg"; import GithubIcon from "../../public/icons/icon-github.svg"; import HomeIcon from "../../public/icons/icon-home.svg"; import PricingIcon from "../../public/icons/icon-pricing.svg"; const navigation = [ { name: "Home", href: "/home", icon: }, { name: "Blog", href: "/blog", icon: }, { name: "Pricing", href: "https://agentgpt.reworkd.ai/plan", icon: }, { name: "Github", href: "https://github.com/reworkd/AgentGPT", icon: , }, { name: "Docs", href: "https://docs.reworkd.ai/", icon: }, ]; export default function NavBar() { const router = useRouter(); const currentIndex = navigation.findIndex( (nav) => router.pathname.includes(nav.href) || router.pathname === nav.href ); const [hoveredButtonIndex, setHoveredButtonIndex] = useState(0); return ( {({ open }) => ( <>
Reworkd AI Reworkd
{ window.open("https://6h6bquxo5g1.typeform.com/to/qscfsOf1", "_blank"); }} > <> Join the Waitlist
{/* Mobile menu button */} Open main menu {open ? (
{navigation.map((item) => ( {item.name} ))}
)}
); }