pub mod constructors;
pub mod methods;
pub mod traits;
use ratatui::style::Color;
#[derive(Clone, Debug)]
pub struct HotkeyItem {
pub key: String,
pub description: String,
}
#[cfg(feature = "hotkey")]
impl From<crate::services::hotkey::Hotkey> for HotkeyItem {
fn from(hotkey: crate::services::hotkey::Hotkey) -> Self {
Self {
key: hotkey.key,
description: hotkey.description,
}
}
}
#[derive(Clone, Debug)]
pub struct HotkeyFooter {
pub items: Vec<HotkeyItem>,
pub key_color: Color,
pub description_color: Color,
pub background_color: Color,
}
pub struct HotkeyFooterBuilder {
items: Vec<HotkeyItem>,
}