(&self)
| 78 | } |
| 79 | |
| 80 | fn get_icon(&self) -> &str { |
| 81 | match self.alert_type { |
| 82 | AlertType::Info => "ℹ", |
| 83 | AlertType::Success => "✓", |
| 84 | AlertType::Warning => "⚠", |
| 85 | AlertType::Error => "✗", |
| 86 | } |
| 87 | } |
| 88 | |
| 89 | pub fn render(&self, frame: &mut Frame, area: Rect, theme: &Theme) { |
| 90 | if !self.open { |