peillute/views/
navbar.rs

1//! Navigation bar component for the Peillute application
2//!
3//! This component provides the main navigation interface, including links to
4//! the home page and debug information, along with the application title.
5
6use crate::Route;
7use dioxus::prelude::*;
8
9/// Navigation bar component
10///
11/// Renders a navigation bar with links to different sections of the application
12/// and displays the application title. The component also includes an outlet
13/// for rendering child routes.
14#[component]
15pub fn Navbar() -> Element {
16    rsx! {
17        div { id: "navbar",
18            Link { to: Route::Home {}, "Home" }
19            h1 { "Peillute" }
20            Link { to: Route::Info {}, "Debug-Info" }
21        }
22        Outlet::<Route> {}
23    }
24}