use topcoat::Result; use topcoat::context::Cx; use topcoat::view::{View, component, view}; use crate::render::emoji::emojify; #[component] pub async fn commit_line(cx: &Cx, subject: String) -> Result { let text = emojify(&subject).into_owned(); Ok(view! { (text.as_str()) }) }