A comprehensive collection of reusable TUI components for ratatui including resizable splits, tree views, markdown rendering, toast notifications, dialogs, and terminal embedding
//! Viewer content-area geometry for the code widget.
useratatui::layout::Rect;/// Returns the viewer content area before the statusline.
pub(crate)fnviewer_content_area(area: Rect)-> Rect{if area.height >1{
Rect {
height: area.height.saturating_sub(1),..area
}}else{
area
}}