15 lines
469 B
TypeScript
15 lines
469 B
TypeScript
import { connect } from 'react-redux';
|
|
import { fetchClustersList } from 'redux/actions';
|
|
import { getIsClusterListFetched } from 'redux/reducers/clusters/selectors';
|
|
import { RootState } from 'redux/interfaces';
|
|
import App from './App';
|
|
|
|
const mapStateToProps = (state: RootState) => ({
|
|
isClusterListFetched: getIsClusterListFetched(state),
|
|
});
|
|
|
|
const mapDispatchToProps = {
|
|
fetchClustersList,
|
|
};
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(App);
|