use yew::prelude::*; use crate::{components, layouts}; #[derive(Properties, PartialEq)] pub struct Props { #[prop_or_default] pub children: Children, } pub struct Main; impl Component for Main { type Message = (); type Properties = Props; fn create(_ctx: &Context) -> Self { Self } fn view(&self, ctx: &Context) -> Html { html! { <>
{ for ctx.props().children.iter() }
} } }