use crate::state::{bar::BarState, GlobalState}; BarState!( EditorBarState, (), GlobalState::instance().editor.bar, GlobalState::instance_mut().editor.bar );