use crate::components::card::Card;
use protocol::card;
use yew::prelude::*;
#[function_component(Hand)]
pub fn hand(props: &HandProps) -> Html {
let cards = props.cards.iter().map(|card| {
html! {
}
});
html! {
{ for cards }
}
}
#[derive(Clone, Default, PartialEq, Properties)]
pub struct HandProps {
#[prop_or_default]
pub cards: Vec,
pub on_card_clicked: Callback,
}