email_components/components/
section.rs1use yew::{Classes, Html, Properties, function_component, html};
2
3#[derive(Properties, PartialEq)]
4pub struct Props {
5 pub class: Classes,
6 pub children: Html,
7}
8
9#[function_component]
10pub fn Section(props: &Props) -> Html {
11 let Props { class, children } = props;
12
13 html! {
14 <table
15 align="center"
16 width="100%"
17 border=0
18 cellpadding="0"
19 cellspacing="0"
20 role="presentation"
21 class={class.clone()}
22 >
23 <tbody>
24 <tr>
25 <td>{ children.clone() }</td>
26 </tr>
27 </tbody>
28 </table>
29 }
30}