2020-05-16 04:09:46 +05:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
|
2022-08-04 13:31:14 +02:00
|
|
|
import selectors from '../selectors';
|
2020-05-29 19:31:19 +05:00
|
|
|
import Static from '../components/Static';
|
2020-05-16 04:09:46 +05:00
|
|
|
|
|
|
|
const mapStateToProps = (state) => {
|
2022-12-26 21:10:50 +01:00
|
|
|
const { cardId, projectId } = selectors.selectPath(state);
|
|
|
|
const currentBoard = selectors.selectCurrentBoard(state);
|
2020-05-16 04:09:46 +05:00
|
|
|
|
|
|
|
return {
|
|
|
|
projectId,
|
2022-12-26 21:10:50 +01:00
|
|
|
cardId,
|
|
|
|
board: currentBoard,
|
2020-05-16 04:09:46 +05:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2020-05-29 19:31:19 +05:00
|
|
|
export default connect(mapStateToProps)(Static);
|