forge
Explore
Log in

Don't you dare go Hollow

forge

Clone
★ 0

0 watching0 forksRustAGPL-3.09.3 MiBcd4373fTahinli5 hours ago347 commits

commit_line.rs15 lines, 425 bytesHistoryRawDownload
1use topcoat::Result;
2use topcoat::context::Cx;
3use topcoat::view::{View, component, view};
4
5use crate::render::emoji::emojify;
6
7#[component]
8pub 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}