use leptos::{ IntoView, component, prelude::{Children, ClassAttribute, ElementChild, OnAttribute}, view, }; use leptos_router::{NavigateOptions, hooks::use_navigate}; #[component] pub fn Container( header: impl IntoView, buttons: Vec<(impl IntoView, &'static str)>, children: Children, ) -> impl IntoView { view! {

{header}

{children()}
} }