How the states of a Sidebar can be managed in the Redux store when it is active, opens or closes, stops being focused, etc ...
Usually I organize the store depending on the state so that it is the component that is painted in one way or another. Something like:
ui_sidebar: {
expand: 1,
active: 1
...
}
In this way, the component will know which item to expand and which link to mark as active