use ratatui_core::layout; use crate::error; pub trait Element { fn constraint(&self) -> &layout::Constraint; fn render(&self); }