import Link from "next/link"; import { useState, Fragment } from "react"; import { NavTemplate } from "../../layouts/NavTemplates"; import Image from "next/image"; import { m, Variants } from "framer-motion"; interface NavProps { options: NavTemplate[]; } // nav bar animation, fades in and then animates the children const containerAnimation: Variants = { initial: { opacity: 1, }, animate: { opacity: 1, transition: { duration: 2, delayChildren: 0.5, staggerChildren: 0.25, }, }, }; // default animation for nav bar items const itemAnimation: Variants = { initial: { opacity: 0, x: 100, }, animate: { opacity: 1, x: 0, }, }; function NavBar({ options }: NavProps) { const [navList, setNavList] = useState(options); return ( InvestBot Logo

InvestBot

Serving anny's community est. 2022

{navList.map((nav, index) => ( {nav.content} ))}

Login blah

); } export default NavBar;