15 lines
359 B
TypeScript
15 lines
359 B
TypeScript
|
import { connect } from "react-redux";
|
||
|
|
||
|
import LevelListPage from "../pages/levelList";
|
||
|
|
||
|
const mapStateToProps = state => {
|
||
|
return {
|
||
|
levels: state.levels,
|
||
|
};
|
||
|
};
|
||
|
const mapDispatchToProps = dispatch => { return {} };
|
||
|
|
||
|
const LevelListContainer = connect(mapStateToProps,
|
||
|
mapDispatchToProps)(LevelListPage);
|
||
|
export default LevelListContainer;
|