//! Reflect-driven inspector undo bridge (H2) — scoped to `shared` components.

use bevy::prelude::*;
use bevy_egui::egui;

use shared::LevelObject;

/// Generic reflect inspector with undo for whitelisted authoring components.
pub fn reflect_inspector_ui(_world: &mut World, ui: &mut egui::Ui, entity: Entity) {
    if _world
        .get_entity(entity)
        .is_ok_and(|e| e.contains::<LevelObject>())
    {
        ui.small("Reflect undo bridge: use typed inspectors for shared components.");
    }
}
