blob: 352a0306419ca36dc32b761efaf16d37d8b1a236 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
use yew::prelude::*;
use crate::bridge_engine::Trick;
#[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>,
}
|