()
| 221 | |
| 222 | #[component] |
| 223 | fn AppLayout() -> Element { |
| 224 | use_effect(move || { |
| 225 | theme::theme_seed(); |
| 226 | if let Some(dark_mode) = Route::in_dark_mode() { |
| 227 | theme::set_theme(dark_mode); |
| 228 | } |
| 229 | }); |
| 230 | |
| 231 | rsx! { |
| 232 | Outlet::<Route> {} |
| 233 | } |
| 234 | } |
| 235 | |
| 236 | #[component] |
| 237 | fn NavigationLayout() -> Element { |
nothing calls this directly
no test coverage detected