MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / get_icon

Method get_icon

crates/opencode-tui/src/components/dialogs/alert.rs:80–87  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

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 {

Callers 1

renderMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected