mirror of
https://github.com/plankanban/planka.git
synced 2025-12-26 09:15:01 +03: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);
|