mod fps;
mod home;
use {
home::Home,
matetui::{components, kb, Action, App, ComponentAccessors},
};
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let home = Home::default().as_active();
let mut app = App::default()
.with_components(components![home])
.with_frame_rate(24)
.with_tick_rate(24)
.with_keybindings(kb![
"<ctrl-c>" => Action::Quit, "<q>" => Action::Quit, "<d>" => "app:drink-mate" ]);
app.run().await?;
println!("Goodbye!");
Ok(())
}