classify web
This commit is contained in:
11
components/Common/Header.jsx
Normal file
11
components/Common/Header.jsx
Normal file
@@ -0,0 +1,11 @@
|
||||
"use client";
|
||||
import { usePathname } from "next/navigation";
|
||||
import LandingHeader from "../PagesComponent/LandingPage/LandingHeader";
|
||||
import HomeHeader from "../PagesComponent/Home/HomeHeader";
|
||||
|
||||
const Header = () => {
|
||||
const pathname = usePathname();
|
||||
return pathname === "/landing" ? <LandingHeader /> : <HomeHeader />;
|
||||
};
|
||||
|
||||
export default Header;
|
||||
Reference in New Issue
Block a user