use std::time::Duration;
use yew::platform::time::sleep;
use yew::prelude::*;
use yew_router::prelude::*;
mod utils;
use utils::*;
use wasm_bindgen_test::{wasm_bindgen_test as test, wasm_bindgen_test_configure};
wasm_bindgen_test_configure!(run_in_browser);
#[derive(Routable, Debug, Clone, PartialEq)]
enum AppRoute {
#[at("/")]
Root,
#[at("/search/:query")]
Search { query: String },
}
#[function_component]
fn Comp() -> Html {
let switch = move |routes: AppRoute| match routes {
AppRoute::Root => html! {
<>