pub mod menu;
pub mod tray;
pub mod updater;
#[cfg(test)]
pub mod tests;

use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct AppState {
    pub app_version: String,
    pub is_dev_mode: bool,
}

impl Default for AppState {
    fn default() -> Self {
        Self {
            app_version: env!("CARGO_PKG_VERSION").to_string(),
            is_dev_mode: cfg!(debug_assertions),
        }
    }
}
