use crate::menu::menu_event::{
    handle_close, handle_fullscreen, handle_maximize, handle_minimize, handle_refresh, handle_restore, handle_zoom_in, handle_zoom_out, handle_zoom_reset,
};

/// 处理菜单事件
pub fn handle_menu_event<R: tauri::Runtime>(app: &tauri::AppHandle<R>, event_id: &str) {
    match event_id {
        "zoom_in" => handle_zoom_in(app),
        "zoom_out" => handle_zoom_out(app),
        "zoom_reset" => handle_zoom_reset(app),
        "minimize" => handle_minimize(app),
        "restore" => handle_restore(app),
        "maximize" => handle_maximize(app),
        "close" => handle_close(app),
        "fullscreen" => handle_fullscreen(app),
        "refresh" => handle_refresh(app),
        _ => {}
    }
}
