blob: d8f5a0421ddb8e08e3ffe8c4c4a9e9a1fceb1223 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
 | use protocol::bridge_engine::Trick;
use yew::prelude::*;
#[function_component(TricksPlayed)]
pub fn tricks_played(props: &TricksPlayedProperties) -> Html {
    html! {
        <>
            <p>{ format!("{} tricks played", props.tricks.len()) }</p>
        </>
    }
}
#[derive(PartialEq, Properties, Clone)]
pub struct TricksPlayedProperties {
    pub tricks: Vec<Trick>,
}
 |