lbry-desktop/ui/js/component/errorModal/index.jsx

24 lines
470 B
React
Raw Normal View History

2017-04-07 07:15:22 +02:00
import React from 'react'
import {
connect
} from 'react-redux'
import {
selectCurrentModal,
2017-05-24 23:53:03 +02:00
selectModalExtraContent,
2017-04-07 07:15:22 +02:00
} from 'selectors/app'
import {
doCloseModal,
} from 'actions/app'
import ErrorModal from './view'
const select = (state) => ({
modal: selectCurrentModal(state),
2017-05-24 23:53:03 +02:00
error: selectModalExtraContent(state),
2017-04-07 07:15:22 +02:00
})
const perform = (dispatch) => ({
closeModal: () => dispatch(doCloseModal())
})
export default connect(select, perform)(ErrorModal)