import { useState } from "react"; import { AiOutlineHome, AiOutlineSchedule, AiOutlineUnorderedList } from "react-icons/ai"; import { PiStepsDuotone } from "react-icons/pi"; import { IoSettingsOutline } from "react-icons/io5"; import { AnimatePresence, motion } from "framer-motion"; import { useNavigate } from "react-router-dom"; const menuItems = [ { id: 0, path: "/", icon: }, { id: 1, path: "/tasks", icon: }, { id: 2, path: "/calendar", icon: }, { id: 3, path: "/settings", icon: }, { id: 4, path: "/priority", icon: }, ]; export const SideNav = () => { const [selected, setSelected] = useState(0); return ( ); }; const NavItem = ({ icon, selected, id, setSelected, path }) => { const navigate = useNavigate(); return ( { setSelected(id); navigate(path); }} whileHover={{ scale: 1.05 }} whileTap={{ scale: 0.95 }}> {selected && ( )} {icon} ); };