blob: 8e8b5c8811718b339c0d640a62726b2a183c4e04 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
use yew::prelude::*;
#[function_component(Table)]
pub fn table(props: &TableProps) -> Html {
// let leave_table = {
// Callback::from(move |_| {
// });
// };
html! {
<>
<p>{ format!("This is table {}", props.table.id) }</p>
</>
}
}
#[derive(PartialEq, Properties, Clone)]
pub struct TableProps {
pub table: protocol::Table,
}
|