#![allow(unused)] use dioxus::prelude::*; fn main() {} struct AppSettings {} // ANCHOR: wrap_context fn use_settings(cx: &ScopeState) -> UseSharedState { use_shared_state::(cx).expect("App settings not provided") } // ANCHOR_END: wrap_context