Files
bigcapital/packages/webapp/src/containers/FinancialStatements/ProfitLossSheet/withProfitLoss.tsx
2023-02-03 01:02:31 +02:00

15 lines
438 B
TypeScript

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