aboutsummaryrefslogtreecommitdiff
path: root/src/components/hello_world.rs
diff options
context:
space:
mode:
authorShav Kinderlehrer <[email protected]>2024-03-07 09:34:25 -0500
committerShav Kinderlehrer <[email protected]>2024-03-07 09:34:25 -0500
commit832eb17a68e37f287206ec319a316ea91247808a (patch)
tree273aad6f124e080554f081c432c1d8f2a59b1a26 /src/components/hello_world.rs
parentfa3e812a301455c7bc7b4d829a7fba01ddaea413 (diff)
downloadmolehole-832eb17a68e37f287206ec319a316ea91247808a.tar.gz
molehole-832eb17a68e37f287206ec319a316ea91247808a.zip
Add default shortcuts + add flags for super key
Diffstat (limited to 'src/components/hello_world.rs')
-rw-r--r--src/components/hello_world.rs25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/components/hello_world.rs b/src/components/hello_world.rs
deleted file mode 100644
index ac9d02b..0000000
--- a/src/components/hello_world.rs
+++ /dev/null
@@ -1,25 +0,0 @@
-use ratatui::prelude::{Frame, Rect};
-use ratatui::widgets::{Paragraph, Wrap};
-
-use crate::component::Component;
-
-#[derive(Default, Clone)]
-pub struct HelloWorld {
- pub text: String,
-}
-
-impl Component for HelloWorld {
- fn init(&mut self) -> eyre::Result<()> {
- self.text = "Hello, world!".to_string();
- Ok(())
- }
-
- fn render(&mut self, frame: &mut Frame, rect: Rect) -> eyre::Result<()> {
- frame.render_widget(
- Paragraph::new(self.text.clone()).wrap(Wrap { trim: true }),
- rect,
- );
-
- Ok(())
- }
-}