use ratatui::{ style::{Color, Style}, text::{Line, Text}, widgets::{Block, Borders, Paragraph, Wrap}, }; pub fn getExitPara<'a>() -> Paragraph<'a> { let exitPopup = Block::default() .title("Exit Window") .borders(Borders::ALL) .style(Style::default().bg(Color::Rgb(42, 61, 69))) .border_style(Style::default().fg(Color::Red)); let exitText = Text::from(vec![ Line::from("Exit the app?"), Line::from("ANY UNSAVED CHANGES WILL BE DISCARDED."), Line::from("Press (s) to save from the main screen."), ]); Paragraph::new(exitText) .block(exitPopup) .wrap(Wrap { trim: false }) .style(Style::default().fg(Color::White)) }