1
Fork 0
bauke-xyz/source/components/page_footer.rs

30 lines
565 B
Rust
Raw Normal View History

2021-08-26 15:52:13 +00:00
use yew::prelude::*;
/// The main page `<footer>` element.
2021-11-25 22:28:21 +00:00
pub(crate) struct PageFooter;
2021-08-26 15:52:13 +00:00
impl Component for PageFooter {
2021-11-25 22:28:21 +00:00
type Message = ();
2021-08-26 15:52:13 +00:00
type Properties = ();
2021-11-25 22:28:21 +00:00
fn create(_props: Self::Properties, _link: ComponentLink<Self>) -> Self {
2021-08-26 15:52:13 +00:00
log::trace!("Creating PageFooter");
2021-11-25 22:28:21 +00:00
Self
2021-08-26 15:52:13 +00:00
}
2021-11-25 22:28:21 +00:00
fn update(&mut self, _msg: Self::Message) -> ShouldRender {
unimplemented!()
2021-08-26 15:52:13 +00:00
}
fn change(&mut self, _props: Self::Properties) -> ShouldRender {
false
}
fn view(&self) -> Html {
html! {
2021-11-25 22:28:21 +00:00
<footer class="page-footer"></footer>
2021-08-26 15:52:13 +00:00
}
}
}