mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 06:10:31 +00:00
21 lines
592 B
TypeScript
21 lines
592 B
TypeScript
// @ts-nocheck
|
|
import { paginationLocationQuery } from '@/store/selectors';
|
|
import { createDeepEqualSelector } from '@/utils';
|
|
|
|
// Accounts table state selector
|
|
const cashflowAccountsTableStateSelector = (state, props) =>
|
|
state.cashflowAccounts.tableState;
|
|
|
|
// Get accounts table state marged with location query.
|
|
export const getCashflowAccountsTableStateFactory = () =>
|
|
createDeepEqualSelector(
|
|
paginationLocationQuery,
|
|
cashflowAccountsTableStateSelector,
|
|
(locationQuery, tableState) => {
|
|
return {
|
|
...locationQuery,
|
|
...tableState,
|
|
};
|
|
},
|
|
);
|