email_components/components/
section.rs

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