use crate::tui::app::state::App;
pub fn attachment_suffix(app: &App) -> String {
let pending_images = app.state.pending_images.len();
let steering = app.state.steering_count();
if pending_images == 0 && steering == 0 {
return String::new();
}
let image_part = (pending_images > 0).then(|| format!("📷 {pending_images} attached"));
let steering_part = (steering > 0).then(|| format!("🧠{steering} queued"));
let parts = [image_part, steering_part]
.into_iter()
.flatten()
.collect::<Vec<_>>()
.join(" | ");
format!(" | {parts} ")
}