I am working on a NextJS project using Layout so that I can use the same Header and Footer for all pages. But for one of the pages, I don't need the Header, I need the Footer alone. Is there any way to do this?
This is my _App.js:
function MyApp({ Component, pageProps }) {
return (
<Layout>
<Component {...pageProps} />;
</Layout>
);
}
This is how I am rendering them:
<Header />
<SidebarMenu />
<FloatingChat />
{/* Display props */}
{children}
<Footer />