pub mod connection_form;
pub mod connection_list;
pub mod help;
pub mod key_list;
pub mod modal;
pub mod status_bar;
pub mod value_viewer;
pub mod warning_message;
pub mod welcome;
use ratatui::{layout::Rect, Frame};
use crate::action::Action;
use crate::events::{Event, EventType};
pub trait Component {
type Props<'a>;
fn subscriptions(&self) -> Vec<EventType> {
vec![]
}
fn handle_event(&mut self, _event: &Event, _props: Self::Props<'_>) -> Vec<Action> {
vec![]
}
fn render(&mut self, f: &mut Frame, area: Rect, props: Self::Props<'_>);
fn area(&self) -> Option<Rect> {
None
}
}