Integrate modals with Redux store
Depends on https://github.com/theforeman/foreman/pull/7039
Users should be able to check a status of a modal by id
Users should be able to close/open Modals by id
Fixes #27853: Connect ForemanModal to Redux store
For unsquashed commits, see jeremylenz/27853-modals-redux-unsquashed
Connect ForemanModal React component to Redux store.
Add useForemanModal hook
for reusing stateful logic in any ForemanModal component.
Modal state is now controlled by id with Redux actions.
Uses react-redux v7.1,
which includes useSelector hook
and allows use of Redux without connect,
mapStateToProps or mapDispatchToProps.