dioxus_router/components/
default_errors.rs1use dioxus_core::Element;
2use dioxus_core_macro::rsx;
3use dioxus_html as dioxus_elements;
4
5#[allow(deprecated)]
6use crate::hooks::use_router;
7
8#[allow(non_snake_case)]
10pub fn FailureExternalNavigation() -> Element {
11 #[allow(deprecated)]
12 let router = use_router();
13
14 rsx! {
15 h1 { "External Navigation Failure!" }
16 p {
17 "The application tried to programmatically navigate to an external page. This "
18 "operation has failed. Click the link below to complete the navigation manually."
19 }
20 a { onclick: move |_| { router.clear_error() }, "Click here to go back" }
21 }
22}