lbry-desktop/ui/modal/modalRouter/index.js
zeppi ee9f63a161 integrate all the things
bugfix

wip

flow

fix

cleaning

clean
2021-10-15 23:49:41 -04:00

17 lines
588 B
JavaScript

import { connect } from 'react-redux';
import { selectModal } from 'redux/selectors/app';
import { doOpenModal, doHideModal } from 'redux/actions/app';
import { selectError } from 'redux/selectors/notifications'; // RENAME THIS 'selectNotificationError'
import ModalRouter from './view';
const select = (state, props) => ({
modal: selectModal(state),
error: selectError(state),
});
const perform = (dispatch) => ({
openModal: (props) => dispatch(doOpenModal(props)),
hideModal: (props) => dispatch(doHideModal(props)),
});
export default connect(select, perform)(ModalRouter);