use bounce::helmet::Helmet; use yew::prelude::*; use yew_router::prelude::*; use crate::routes; #[derive(Properties, PartialEq)] pub struct Props { pub message: AttrValue, #[prop_or(true)] pub ellipsis: bool, } pub struct NotFound; impl Component for NotFound { type Message = (); type Properties = Props; fn create(_ctx: &Context) -> Self { Self } fn view(&self, ctx: &Context) -> Html { html! { <> { &ctx.props().message }

{ &ctx.props().message } if ctx.props().ellipsis { { "..." } }

to={routes::Route::Index}> { "Back to home" } >

} } }