mirror of
https://github.com/plankanban/planka.git
synced 2025-07-27 00:59:44 +02:00
17 lines
408 B
JavaScript
17 lines
408 B
JavaScript
|
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);
|