mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 22:30:31 +00:00
17 lines
507 B
JavaScript
17 lines
507 B
JavaScript
import { connect } from 'react-redux';
|
|
import {
|
|
getPaymentReceiveTableStateFactory
|
|
} from 'store/PaymentReceives/paymentReceives.selector';
|
|
|
|
export default (mapState) => {
|
|
const getPaymentReceiveTableState = getPaymentReceiveTableStateFactory();
|
|
|
|
const mapStateToProps = (state, props) => {
|
|
const mapped = {
|
|
paymentReceivesTableState: getPaymentReceiveTableState(state, props),
|
|
};
|
|
return mapState ? mapState(mapped, state, props) : mapped;
|
|
};
|
|
return connect(mapStateToProps);
|
|
};
|