I'm new to react so apologies for the basic question. I have a header component as below which I want to use in my other components
const { Header, Content, Footer, Sider } = Layout;
const NavHeader = (Components: any) => {
const [collapsed, setCollapsed] = useState(true);
return (
<Layout>
<Layout className="site-layout">
<Header className="site-layout-background" style={{padding: 0,}}/>
<Content>
Content of the page
</Content>
<Footer>
My Footer
</Footer>
</Layout>
</Layout>
);
};
export default NavHeader;
How can I reuse this code considering my pages should be placed inside the `<Content></Content>` part of the header?