use ratatui::{
style::{Color, Style},
text::Span,
widgets::{Block, Borders, Paragraph},
};
pub fn create_input_widget<'a>(label: &'a str, value: &'a str, is_focused: bool) -> Paragraph<'a> {
let block = Block::default()
.borders(Borders::ALL)
.border_style(Style::default().fg(if is_focused {
Color::Yellow } else {
Color::Gray
}))
.title(Span::styled(
label,
Style::default().fg(if is_focused {
Color::Gray } else {
Color::Gray
}),
));
Paragraph::new(value)
.style(Style::default().fg(Color::Gray))
.block(block)
}