mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 14:20:31 +00:00
25 lines
747 B
TypeScript
25 lines
747 B
TypeScript
// @ts-nocheck
|
|
import { connect } from 'react-redux';
|
|
import {
|
|
getManualJournalsTableStateFactory,
|
|
manualJournalTableStateChangedFactory,
|
|
} from '@/store/manualJournals/manualJournals.selectors';
|
|
|
|
export default (mapState) => {
|
|
const getJournalsTableQuery = getManualJournalsTableStateFactory();
|
|
const manualJournalTableStateChanged =
|
|
manualJournalTableStateChangedFactory();
|
|
|
|
const mapStateToProps = (state, props) => {
|
|
const mapped = {
|
|
manualJournalsTableState: getJournalsTableQuery(state, props),
|
|
manualJournalTableStateChanged: manualJournalTableStateChanged(
|
|
state,
|
|
props,
|
|
),
|
|
};
|
|
return mapState ? mapState(mapped, state, props) : mapped;
|
|
};
|
|
return connect(mapStateToProps);
|
|
};
|