use leptos::*; use leptos_router::use_navigate; use melt_ui::*; #[component] pub fn SiteHeader() -> impl IntoView { let theme = use_rw_theme(); let theme_name = create_memo(move |_| theme.with(|theme| theme.name.clone())); let on_theme = move |_| { if theme_name.get_untracked() != "Light".to_string() { theme.set(Theme::light()) } else { theme.set(Theme::dark()) } }; view! { "Melt UI" } }