1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-27 00:59:44 +02:00
planka/client/src/containers/CoreContainer.js

17 lines
408 B
JavaScript
Raw Normal View History

import { connect } from 'react-redux';
import { currentModalSelector, currentProjectSelector } from '../selectors';
import Core from '../components/Core';
const mapStateToProps = (state) => {
const currentModal = currentModalSelector(state);
const currentProject = currentProjectSelector(state);
return {
currentModal,
currentProject,
};
};
export default connect(mapStateToProps)(Core);