22 lines
366 B
Rust
22 lines
366 B
Rust
use dioxus::prelude::*;
|
|
|
|
pub mod footer;
|
|
pub mod header;
|
|
|
|
use crate::{Body, Route};
|
|
use footer::Footer;
|
|
use header::Header;
|
|
|
|
pub fn Layout() -> Element {
|
|
rsx! {
|
|
div {
|
|
class: "dark flex flex-col min-h-screen",
|
|
Header {},
|
|
Body {
|
|
Outlet::<Route> {},
|
|
},
|
|
Footer {}
|
|
}
|
|
}
|
|
}
|