import React, { useState, useEffect } from 'react'; import { Link } from 'react-router-dom'; import MenuIcon from '@mui/icons-material/Menu'; import CloseIcon from '@mui/icons-material/Close'; import $ from 'jquery'; import 'magnific-popup'; import 'magnific-popup/dist/magnific-popup.css'; import './Navbar.css'; const Navbar = () => { const [isMenuOpen, setIsMenuOpen] = useState(false); const toggleMenu = () => { if (!isMenuOpen) { $.magnificPopup.open({ items: { src: '#navbar-popup', type: 'inline' }, midClick: true, closeOnBgClick: true, callbacks: { open: () => setIsMenuOpen(true), close: () => setIsMenuOpen(false), }, }); } else { $.magnificPopup.close(); } setIsMenuOpen(!isMenuOpen); }; return ( ); }; export default Navbar;