pub trait Component {
fn render(&self, frame: &mut Frame, area: Rect);
fn handle_event(&mut self, event: &Event) -> bool;
}
pub mod button;
pub mod input;
pub mod list;
pub mod table;
pub mod panel;
pub mod progress_bar;
pub mod loading_animation;
pub mod select_menu;
pub use button::Button;
pub use input::Input;
pub use list::List;
pub use loading_animation::LoadingAnimation;
pub use panel::Panel;
pub use progress_bar::ProgressBar;
pub use select_menu::SelectMenu;
pub use table::Table;
use crate::event::Event;
use crate::{layout::Rect, render::Frame};