Moved Navbar-related components out of 'Home' directory.

This commit is contained in:
2025-04-05 23:57:08 +02:00
parent 481aa0fe63
commit 82a43f48fd
4 changed files with 1 additions and 1 deletions

24
components/Navbar/Nav.tsx Normal file
View File

@@ -0,0 +1,24 @@
"use client";
import React, {useState} from "react";
import DesktopNav from "./DesktopNav";
import MobileNav from "./MobileNav";
const Nav = () => {
const [showNav, setShowNav] = useState(false);
const handleNavShow = () => {
setShowNav(true);
};
const handleNavHide = () => {
setShowNav(false);
};
return (
<div>
<DesktopNav openNav={handleNavShow}/>
<MobileNav showNav={showNav} closeNav={handleNavHide}/>
</div>
);
};
export default Nav;