//! A commit subject on one line, shared by every list that shows subjects one per row: the commit //! list, compare, branches, the tree's last-commit cells, blame and the CI runs. It shows the //! subject as written, like GitHub. The full subject is the `title` attribute. use topcoat::Result; use topcoat::view::{View, component, view}; use crate::render::emoji::emojify; /// One subject on one line as it was written, header included, truncated by CSS. The full subject /// is the `title` attribute. #[component] pub async fn commit_line(subject: String) -> Result { let text = emojify(&subject).into_owned(); Ok(view! { (text.as_str()) }) }