Some checks failed
CI / Clippy (push) Successful in 2m35s
CI / Security Audit (push) Successful in 1m46s
CI / Tests (push) Successful in 3m5s
CI / Format (push) Successful in 6m53s
CI / Build & Push Image (push) Failing after 1m54s
CI / Changelog (push) Failing after 1m39s
Co-authored-by: Sharang Parnerkar <parnerkarsharang@gmail.com> Reviewed-on: #2
22 lines
579 B
Rust
22 lines
579 B
Rust
use dioxus::prelude::*;
|
|
|
|
use crate::components::sidebar::Sidebar;
|
|
use crate::Route;
|
|
|
|
/// Application shell layout that wraps all authenticated pages.
|
|
///
|
|
/// Renders a fixed sidebar on the left and the active child route
|
|
/// in the scrollable main content area via `Outlet`.
|
|
#[component]
|
|
pub fn AppShell() -> Element {
|
|
rsx! {
|
|
div { class: "app-shell",
|
|
Sidebar {
|
|
email: "user@example.com".to_string(),
|
|
avatar_url: String::new(),
|
|
}
|
|
main { class: "main-content", Outlet::<Route> {} }
|
|
}
|
|
}
|
|
}
|