use leptos::{ IntoView, component, prelude::{Children, ClassAttribute, ElementChild}, view, }; use leptos_router::components::A; #[component] pub fn Container( header: impl IntoView + 'static, buttons: Vec<(impl IntoView + 'static, &'static str)>, children: Children, ) -> impl IntoView { assert!(!buttons.is_empty()); // TODO: Add the direct link to the first button back. <2026-02-15> // let first_button_path = buttons.first().expect("Should have at least on button").1; view! {