pub mod connection_list;
pub mod key_browser;
pub mod status_bar;
pub mod value_viewer;
pub mod warning_message;
pub mod welcome;
use crossterm::event::KeyEvent;
use ratatui::{Frame, layout::Rect};
pub trait Component {
type Props<'a>;
type Msg;
fn render(&mut self, f: &mut Frame, area: Rect, props: Self::Props<'_>);
fn handle_input(&mut self, key: KeyEvent, props: Self::Props<'_>) -> Option<Self::Msg>;
}