gitea_pages/frontend/src/components/loading.rs

19 lines
347 B
Rust

use yew::prelude::*;
pub struct Loading;
impl Component for Loading {
type Message = ();
type Properties = ();
fn create(_ctx: &Context<Self>) -> Self {
Self
}
fn view(&self, _ctx: &Context<Self>) -> Html {
html! {
<p class={classes!("has-text-centered")}>{ "Loading..." }</p>
}
}
}