use yew::prelude::*; use yew_side_effect::title::Title; use crate::layouts; #[derive(Properties, PartialEq)] pub struct NotFoundProps { pub token: Option, pub logged_in: bool, } pub struct NotFound; impl Component for NotFound { type Message = (); type Properties = NotFoundProps; fn create(_ctx: &Context) -> Self { Self } fn view(&self, ctx: &Context) -> Html { html! { <> <layouts::main::Main token={ctx.props().token.to_owned()} logged_in={ctx.props().logged_in}> <h1>{ "404" }</h1> </layouts::main::Main> </> } } }