use routes::signing::SigningExamplesComponent; use yew::prelude::*; use yew_router::prelude::*; use crate::routes::fetching::FetchingExamplesComponent; mod routes; mod services; #[derive(Routable, PartialEq, Eq, Clone, Debug)] pub enum Route { #[at("/fetching")] Fetching, #[at("/signing")] Signing, #[not_found] #[at("/")] Home, } fn main() { yew::Renderer::::new().render(); } struct SubxtExamplesApp; impl Component for SubxtExamplesApp { type Message = (); type Properties = (); fn create(_ctx: &Context) -> Self { SubxtExamplesApp } fn view(&self, _ctx: &Context) -> Html { html! { render={switch} /> } } } fn switch(routes: Route) -> Html { match routes { Route::Fetching => { html! { } } Route::Signing => html! { }, Route::Home => { html! {

{"Welcome to the Subxt WASM examples!"}

} } } }