21 lines
355 B
Rust
21 lines
355 B
Rust
use yew::prelude::*;
|
|
|
|
use crate::layouts;
|
|
|
|
pub struct NotFound;
|
|
|
|
impl Component for NotFound {
|
|
type Message = ();
|
|
type Properties = ();
|
|
|
|
fn create(_ctx: &Context<Self>) -> Self {
|
|
Self
|
|
}
|
|
|
|
fn view(&self, _ctx: &Context<Self>) -> Html {
|
|
html! {
|
|
<layouts::NotFound message="Page not found" />
|
|
}
|
|
}
|
|
}
|