| 1 | use topcoat::Result; |
| 2 | use topcoat::context::Cx; |
| 3 | use topcoat::view::{View, component, view}; |
| 4 | |
| 5 | use crate::render::emoji::emojify; |
| 6 | |
| 7 | #[component] |
| 8 | pub async fn commit_line(cx: &Cx, subject: String) -> Result<impl View> { |
| 9 | let text = emojify(&subject).into_owned(); |
| 10 | Ok(view! { |
| 11 | <span class="commit-line" title=(text.as_str())> |
| 12 | <span class="commit-line-text">(text.as_str())</span> |
| 13 | </span> |
| 14 | }) |
| 15 | } |