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 { assert!(!buttons.is_empty()); let first_button_path = buttons.first().expect("Should have at least on button").1; view! { } }) .collect::>()} } }