diff --git a/StoreHUB-fronted/src/components/Navbar.jsx b/StoreHUB-fronted/src/components/Navbar.jsx index 925a739..b4c3edf 100644 --- a/StoreHUB-fronted/src/components/Navbar.jsx +++ b/StoreHUB-fronted/src/components/Navbar.jsx @@ -19,7 +19,7 @@ const Navbar = () => { user && ( @@ -126,4 +89,16 @@ const NavItem = ({ icon, label }) => ( ); +// New reusable component for mobile links +const NavLink = ({ to, label, icon, onClose }) => ( + onClose(false)} + > + {icon} + {label} + +); + export default Navbar;