15 lines
305 B
JavaScript
Executable File
15 lines
305 B
JavaScript
Executable File
import { connect } from 'react-redux';
|
|
|
|
import { currentModalSelector } from '../selectors';
|
|
import App from '../components/App';
|
|
|
|
const mapStateToProps = (state) => {
|
|
const currentModal = currentModalSelector(state);
|
|
|
|
return {
|
|
currentModal,
|
|
};
|
|
};
|
|
|
|
export default connect(mapStateToProps)(App);
|