#[allow(deprecated)] use crate::hooks::use_router; use dioxus::prelude::*; /// The default component to render when an external navigation fails. #[allow(non_snake_case)] pub fn FailureExternalNavigation(cx: Scope) -> Element { #[allow(deprecated)] let router = use_router(cx); render! { h1 { "External Navigation Failure!" } p { "The application tried to programmatically navigate to an external page. This " "operation has failed. Click the link below to complete the navigation manually." } a { onclick: move |_| { router.clear_error() }, "Click here to go back" } } }