use yew::prelude::*;
use yew_router::Routable;
pub mod index;
use index::*;
#[derive(Clone, Routable, PartialEq)]
pub enum AccountRoute {
#[at("/account/index/:acct")]
Index { acct: String },
}
pub fn account_switch(routes: &AccountRoute) -> Html {
match routes {
AccountRoute::Index { acct } => html! { <Account acct={acct.clone()}/> },
}
}