use yew::prelude::*; #[function_component(Table)] pub fn table(props: &TableProps) -> Html { // let leave_table = { // Callback::from(move |_| { // }); // }; html! { <>
{ format!("This is table {}", props.table.id) }
> } } #[derive(PartialEq, Properties, Clone)] pub struct TableProps { pub table: protocol::Table, }