use yew::{function_component, html, Html, Properties};

#[function_component]
pub fn Paragraph(props: &ParagraphProps) -> Html {
    html! {
        <p class={ format!("text-white {}", props.classes) }>{ props.text.clone() }</p>
    }
}

#[derive(Properties, PartialEq)]
pub struct ParagraphProps {
    pub text: String,
    pub classes: String,
}
