diff --git a/src/component.rs b/src/component.rs new file mode 100644 index 0000000..4950707 --- /dev/null +++ b/src/component.rs @@ -0,0 +1,6 @@ +use ratatui::widgets::Widget; + + +pub trait Component { + fn render(&self) -> Box; +} \ No newline at end of file diff --git a/src/widget/input.rs b/src/component/input.rs similarity index 100% rename from src/widget/input.rs rename to src/component/input.rs diff --git a/src/main.rs b/src/main.rs index 26ed03a..999b638 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,5 +1,5 @@ -pub mod widget; +pub mod component; #[tokio::main] async fn main() { diff --git a/src/widget.rs b/src/widget.rs deleted file mode 100644 index e69de29..0000000