Files
bigcapital/packages/webapp/src/containers/CashFlow/AccountTransactions/withCashflowAccounts.tsx
2023-02-03 01:02:31 +02:00

17 lines
535 B
TypeScript

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