mirror of
https://github.com/plankanban/planka.git
synced 2025-07-19 13:19:44 +02:00
17 lines
359 B
JavaScript
17 lines
359 B
JavaScript
|
import { connect } from 'react-redux';
|
||
|
|
||
|
import { pathSelector } from '../selectors';
|
||
|
import StaticWrapper from '../components/StaticWrapper';
|
||
|
|
||
|
const mapStateToProps = (state) => {
|
||
|
const { cardId, boardId, projectId } = pathSelector(state);
|
||
|
|
||
|
return {
|
||
|
cardId,
|
||
|
boardId,
|
||
|
projectId,
|
||
|
};
|
||
|
};
|
||
|
|
||
|
export default connect(mapStateToProps)(StaticWrapper);
|