use crate::common::ArticleView; use crate::frontend::app::GlobalState; use leptos::*; use leptos_router::*; #[component] pub fn ArticleNav(article: Resource) -> impl IntoView { let global_state = use_context::>().unwrap(); view! { {move || article.get().map(|article| { let title = article.article.title; view!{ }})} } }