Initialize
This commit is contained in:
6
src/component.rs
Normal file
6
src/component.rs
Normal file
@@ -0,0 +1,6 @@
|
||||
use ratatui::widgets::Widget;
|
||||
|
||||
|
||||
pub trait Component {
|
||||
fn render(&self) -> Box<dyn Widget>;
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
pub mod widget;
|
||||
pub mod component;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
|
||||
Reference in New Issue
Block a user