BlueGit

ict rusty-teams

Files

rusty-teams / crates / app-state / src / activity / mod.rs

mod.rs

d39bdfed History
mod.rs 365 B Download Raw
1pub mod feed;
2pub mod reactions;
3pub mod service;
4
5pub use feed::{Actor, Entry, Filter, Kind};
6pub use service::ActivityCenter;
7
8use crate::notify::Preview;
9
10const IMAGE_LABEL: &str = "Image";
11
12fn preview_label(preview: &Preview) -> String {
13 match preview {
14 Preview::Text(text) => text.clone(),
15 Preview::Image => IMAGE_LABEL.to_owned(),
16 }
17}