//! Author page — all quotes by a specific author. use yew::prelude::*; /// Props for the [`AuthorPage`] component. #[derive(Properties, PartialEq)] pub struct AuthorPageProps { /// The author name from the route parameter. pub name: String, } /// Author page component. Lists all quotes attributed to the given author. #[function_component(AuthorPage)] pub fn author_page(props: &AuthorPageProps) -> Html { html! {
{ format!("Loading quotes by {}...", props.name) }
} }