14 lines
246 B
Rust
14 lines
246 B
Rust
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<()>;
|
|
}
|