use std::time::Duration;
use tracing::{info, warn};
use crate::PromptResponse;
pub fn notify(title: &str, body: &str) {
info!(title, body, "Sending desktop notification (Linux)");
match notify_rust::Notification::new()
.auto_icon()
.summary(title)
.timeout(Duration::from_secs(10))
.body(body)
.show()
{
Ok(_) => {}
Err(e) => warn!(error = %e, "Failed to send desktop notification"),
}
}
pub fn prompt(title: &str, body: &str, _timeout: Duration) -> PromptResponse {
notify(title, body);
PromptResponse::Unavailable
}