use std::io; use crossterm::event::Event; use ratatui::widgets::Widget; pub mod block; pub mod input; pub mod table; pub trait Component { fn widget(&self) -> impl Widget; fn event_handler(&mut self, event: Event) -> io::Result<()>; }