mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 04:40:32 +00:00
16 lines
479 B
JavaScript
16 lines
479 B
JavaScript
import { connect } from 'react-redux';
|
|
import { getCustomersBalanceSummaryFilterDrawer } from 'store/financialStatement/financialStatements.selectors';
|
|
|
|
export default (mapState) => {
|
|
const mapStateToProps = (state, props) => {
|
|
const mapped = {
|
|
customersBalanceDrawerFilter: getCustomersBalanceSummaryFilterDrawer(
|
|
state,
|
|
props,
|
|
),
|
|
};
|
|
return mapState ? mapState(mapped, state, props) : mapped;
|
|
};
|
|
return connect(mapStateToProps);
|
|
};
|