bitpill 0.3.5

A personal medication management TUI application built in Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::presentation::tui::app::App;
use crate::presentation::tui::presenters::medication_list_presenter::MedicationListPresenter;
use crate::presentation::tui::renderers::ScreenRenderer;
use ratatui::Frame;

pub struct HomeScreenRenderer;

impl ScreenRenderer for HomeScreenRenderer {
    fn render(&self, f: &mut Frame, app: &App) {
        MedicationListPresenter.present(
            f,
            &app.medications,
            app.selected_index,
            app.status_message.as_ref(),
        );
    }
}