2021-12-11 22:18:48 +05:30
|
|
|
import { cloneDeep } from 'lodash';
|
2021-09-30 23:02:18 +05:30
|
|
|
import { GROUPS_LOCAL_STORAGE_KEY, PROJECTS_LOCAL_STORAGE_KEY } from './constants';
|
|
|
|
|
2021-01-03 14:25:43 +05:30
|
|
|
const createState = ({ query }) => ({
|
2021-12-11 22:18:48 +05:30
|
|
|
urlQuery: cloneDeep(query),
|
2021-01-03 14:25:43 +05:30
|
|
|
query,
|
2021-01-29 00:20:46 +05:30
|
|
|
groups: [],
|
|
|
|
fetchingGroups: false,
|
2021-02-22 17:27:13 +05:30
|
|
|
projects: [],
|
|
|
|
fetchingProjects: false,
|
2021-09-30 23:02:18 +05:30
|
|
|
frequentItems: {
|
|
|
|
[GROUPS_LOCAL_STORAGE_KEY]: [],
|
|
|
|
[PROJECTS_LOCAL_STORAGE_KEY]: [],
|
|
|
|
},
|
2021-12-11 22:18:48 +05:30
|
|
|
sidebarDirty: false,
|
2021-01-03 14:25:43 +05:30
|
|
|
});
|
|
|
|
export default createState;
|