mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 12:50:38 +00:00
16 lines
449 B
TypeScript
16 lines
449 B
TypeScript
// @ts-nocheck
|
|
import { connect } from 'react-redux';
|
|
import { getExpensesCurrentPageFactory } from '@/store/users/users.selectors';
|
|
|
|
export default (mapState) => {
|
|
const mapStateToProps = (state, props) => {
|
|
const mapped = {
|
|
usersList: getExpensesCurrentPageFactory(state, props),
|
|
usersLoading: state.users.loading,
|
|
};
|
|
return mapState ? mapState(mapped, state, props) : mapped;
|
|
};
|
|
|
|
return connect(mapStateToProps);
|
|
};
|