2023-04-16 21:46:10 -05:00
|
|
|
use crate::utils::prop_structs::PageChildren;
|
|
|
|
use dioxus::prelude::*;
|
|
|
|
|
|
|
|
pub fn PageBase<'a>(cx: Scope<'a, PageChildren<'a>>) -> Element {
|
|
|
|
cx.render(rsx!{
|
2023-04-17 12:34:20 -05:00
|
|
|
div { class: "min-h-screen",
|
2023-04-16 21:46:10 -05:00
|
|
|
div { class: "container space-y-4 mx-auto p-4",
|
|
|
|
&cx.props.children
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|