ratatui-toolkit 0.2.6

DEPRECATED: this crate was renamed to `ratkit`. Please migrate to `ratkit`.
Documentation
use crate::primitives::toast::ToastLevel;

impl ToastLevel {
    pub fn color(&self) -> ratatui::style::Color {
        match self {
            ToastLevel::Success => ratatui::style::Color::Green,
            ToastLevel::Error => ratatui::style::Color::Red,
            ToastLevel::Info => ratatui::style::Color::Cyan,
            ToastLevel::Warning => ratatui::style::Color::Yellow,
        }
    }

    pub fn icon(&self) -> &'static str {
        match self {
            ToastLevel::Success => "",
            ToastLevel::Error => "",
            ToastLevel::Info => "",
            ToastLevel::Warning => "",
        }
    }
}