use ratatui::{Frame, prelude::*, widgets::Paragraph};
use crate::ui::components;
pub fn render_error_banner(frame: &mut Frame, error: &str, status_bar_height: u16) {
let area = frame.area();
let error_area = Rect {
x: area.x,
y: area.y + area.height.saturating_sub(status_bar_height + 1),
width: area.width,
height: 1,
};
let error_line = components::build_error_line(error);
frame.render_widget(Paragraph::new(error_line), error_area);
}