Files
bigcapital/client/src/containers/Sales/Estimates/EstimatesLanding/withEstimates.js
a.bouhuolia d48532a7e6 refactoring: sales tables.
refacoring: purchases tables.
2021-02-11 20:45:06 +02:00

17 lines
470 B
JavaScript

import { connect } from 'react-redux';
import {
getEstimatesTableStateFactory,
} from 'store/Estimate/estimates.selectors';
export default (mapState) => {
const getEstimatesTableState = getEstimatesTableStateFactory();
const mapStateToProps = (state, props) => {
const mapped = {
estimatesTableState: getEstimatesTableState(state, props),
};
return mapState ? mapState(mapped, state, props) : mapped;
};
return connect(mapStateToProps);
};