use super::savings::SavesReport;

pub fn render_output(content: &str, report: &SavesReport, show_savings: bool) -> String {
    if show_savings && report.tokens_saved() > 0 {
        format!("{}{}", content, report.render_inline())
    } else {
        content.to_string()
    }
}
