use yew::prelude::*; use crate::routes::home::student_vote; #[derive(Properties, PartialEq)] pub struct StudentHomeProps { pub token: String, pub voted: bool, } pub struct StudentHome; impl Component for StudentHome { type Message = (); type Properties = StudentHomeProps; fn create(_ctx: &Context) -> Self { Self } fn view(&self, ctx: &Context) -> Html { html! { if ctx.props().voted {

{ "Alles in Ordnung." }

} else { } } } }