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