use dioxus_core::{Callback, Element, use_hook};
use dioxus_core_macro::{Props, component};
use dioxus_history::{History, provide_history_context};
use std::rc::Rc;
#[component]
#[allow(missing_docs)]
pub fn HistoryProvider(
history: Callback<(), Rc<dyn History>>,
children: Element,
) -> Element {
use_hook(|| {
provide_history_context(history(()));
});
children
}