diff options
Diffstat (limited to 'webapp/src/components.rs')
-rw-r--r-- | webapp/src/components.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/webapp/src/components.rs b/webapp/src/components.rs index d4b03ee..833ecdc 100644 --- a/webapp/src/components.rs +++ b/webapp/src/components.rs @@ -1,5 +1,7 @@ +use yew::prelude::*; use protocol::card::Suit; +mod hand_diagram; mod app_context_provider; mod bidding; mod bidding_box; @@ -23,6 +25,14 @@ pub use self::show_bid::*; pub use self::table::*; pub use self::trick_in_play::*; pub use self::tricks_played::*; +pub use self::hand_diagram::*; + +#[derive(Clone, Default, PartialEq, Properties)] +pub struct HandProps { + #[prop_or_default] + pub cards: Vec<protocol::card::Card>, + pub on_card_clicked: Callback<protocol::card::Card>, +} pub fn suit_css_class(suit: Suit) -> &'static str { match suit { |