diff options
Diffstat (limited to 'webapp/src/components/table.rs')
-rw-r--r-- | webapp/src/components/table.rs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/webapp/src/components/table.rs b/webapp/src/components/table.rs new file mode 100644 index 0000000..8e8b5c8 --- /dev/null +++ b/webapp/src/components/table.rs @@ -0,0 +1,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, +} |