use crate::components::app_context_provider::ErrorInfoProperties; use yew::prelude::*; #[function_component(ErrorInfo)] pub fn error_info(props: &ErrorInfoProperties) -> Html { let reload = Callback::from(move |_| { web_sys::window().unwrap().location().reload().unwrap(); }); html! {

{ format!("Error: {}. ", props.message) }

} }