i want to make a different header & footer inside the dashboard but it still not working , how to make it work it only works inside the router itself only
here is my code :
<Router>
<Routes>
<Route path="/" >
<Header />
<Route index element={<><Hero /><HomeAbout /> <Slider /> </>} />
<Route exact path="about" element={<About />} />
<Route exact path="contact" element={<Contact />} />
</Route>
<Route path="/dashboard">
<HeaderDashBoard/>
<Route index />
</Route>
</Routes>
<Footer />
</Router>
also is this the right format to make a dashboard ?