use dioxus_core::{use_hook, Callback, Element};
use dioxus_core_macro::{component, Props};
use dioxus_history::{provide_history_context, History};
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
}