mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-23 17:47:24 +00:00
19 lines
463 B
JavaScript
19 lines
463 B
JavaScript
import { connect } from 'react-redux';
|
|
import { selectModal } from 'redux/selectors/app';
|
|
import { doOpenModal } from 'redux/actions/app';
|
|
import { selectError } from 'lbry-redux';
|
|
import ModalRouter from './view';
|
|
|
|
const select = (state, props) => ({
|
|
modal: selectModal(state),
|
|
error: selectError(state),
|
|
});
|
|
|
|
const perform = dispatch => ({
|
|
openModal: props => dispatch(doOpenModal(props)),
|
|
});
|
|
|
|
export default connect(
|
|
select,
|
|
perform
|
|
)(ModalRouter);
|