eazygit 0.5.1

A fast TUI for Git with staging, conflicts, rebase, and palette-first UX
Documentation
use crate::components::manager::ComponentManager;
use crate::app::AppState;
use crate::ui::style;
use ratatui::Frame;
use ratatui::layout::Rect;
use ratatui::widgets::{Paragraph, Clear};
use crate::components::manager::utils;

pub fn render_stash_create_input(_manager: &ComponentManager, frame: &mut Frame, area: Rect, state: &AppState) {
    let popup = utils::center_rect(60, 10, area);
    frame.render_widget(Clear, popup);

    let title = "Stash message (Enter=create, Esc=cancel)";
    let block = style::pane_block(&state.theme, title.to_string(), true);
    let paragraph = Paragraph::new(state.stash_message_input.as_str())
        .style(style::body_style(&state.theme))
        .block(block);

    frame.render_widget(paragraph, popup);
}