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