use protocol::{bridge_engine::Bidding, contract::Contract}; use yew::prelude::*; #[derive(PartialEq, Properties, Clone)] pub struct ShowBidProps { pub contract: Option, pub bidding: Bidding, } #[function_component(ShowBid)] pub fn show_bid(props: &ShowBidProps) -> Html { html! { <>

{ match props.contract { None => "Passed".to_string(), Some(c) => format!("{}", c), } }

} }