1mod editor;
3mod status_line;
4
5use ratatui::prelude::*;
6
7use crate::app::App;
8
9use self::{editor::draw_editor, status_line::draw_status_line};
10
11pub fn render(f: &mut Frame, app: &App) {
12 let global_layout_constraints = vec![Constraint::Min(1), Constraint::Length(1)];
13 let global_layout = Layout::default()
14 .direction(Direction::Vertical)
15 .constraints(global_layout_constraints)
16 .split(f.size());
17
18 draw_editor(f, app, global_layout[0]);
19 draw_status_line(f, app, global_layout[1])
20}