import { useState } from "react";
import Link from "next/link";
import { AnimatePresence, motion } from "framer-motion";
export function NavLinks(): JSX.Element {
const [hoveredIndex, setHoveredIndex] = useState(null);
return (
<>
{[
["Join Us", "/#join-us"],
["FAQ", "/#faq"],
].map(([label, href], index) => (
setHoveredIndex(index)}
onMouseLeave={() => setHoveredIndex(null)}
>
{hoveredIndex === index && (
)}
{label}
))}
>
);
}