diff --git a/src/components/Sidebar.jsx b/src/components/Sidebar.jsx index 842b952..a7671ba 100644 --- a/src/components/Sidebar.jsx +++ b/src/components/Sidebar.jsx @@ -1,3 +1,61 @@ -const Sidebar = () =>
Sidebar
; +import { useState } from 'react'; +import { NavLink } from 'react-router-dom'; +import { RiCloseLine } from 'react-icons/ri'; +import { HiOutlineMenu } from 'react-icons/hi'; + +import { logo } from '../assets'; +import { links } from '../assets/constants'; + +const NavLinks = ({ handleClick }) => ( +
+ {links.map((link) => ( + handleClick && handleClick()} + > + + {link.name} + + ))} +
+); + +const Sidebar = () => { + const [mobileMenuOpen, setMobileMenuOpen] = useState(false); + + return ( + <> +
+ logo + +
+ +
+ {mobileMenuOpen ? ( + setMobileMenuOpen(false)} + /> + ) : ( + setMobileMenuOpen(true)} + /> + )} +
+ +
+ logo + setMobileMenuOpen(false)} /> +
+ + ); +}; export default Sidebar;