1 2 3 4 5 6 7 8 9 10 11 12 13 14
use crate::AppConfig;
use yew::{function_component, html, use_context};
/// App page body component - page specific content is rendered here
#[function_component(AppBody)]
pub(crate) fn app_body() -> Html {
let app_config = use_context::<AppConfig>().expect("no app config found");
html! {
<main>
{(app_config.body_html)()}
</main>
}
}