Files
bigcapital/client/src/containers/FinancialStatements/InventoryValuation/withInventoryValuation.js
2021-03-29 19:24:34 +02:00

13 lines
439 B
JavaScript

import { connect } from 'react-redux';
import { getInventoryValuationFilterDrawer } from 'store/financialStatement/financialStatements.selectors';
export default (mapState) => {
const mapStateToProps = (state, props) => {
const mapped = {
inventoryValuationDrawerFilter: getInventoryValuationFilterDrawer(state),
};
return mapState ? mapState(mapped, state, props) : mapped;
};
return connect(mapStateToProps);
};