actor.rs
1 use leptos::*; 2 3 #[component] 4 pub fn ActorProvider(children: Children) -> impl IntoView { 5 let (actor_currency, set_actor_currency) = create_signal(interface::unit::Currency::USD); 6 7 provide_context(actor_currency); 8 provide_context(set_actor_currency); 9 10 view! { <>{children()}</> } 11 }