17 lines
433 B
JavaScript
17 lines
433 B
JavaScript
import { cloneDeep } from 'lodash';
|
|
import { GROUPS_LOCAL_STORAGE_KEY, PROJECTS_LOCAL_STORAGE_KEY } from './constants';
|
|
|
|
const createState = ({ query }) => ({
|
|
urlQuery: cloneDeep(query),
|
|
query,
|
|
groups: [],
|
|
fetchingGroups: false,
|
|
projects: [],
|
|
fetchingProjects: false,
|
|
frequentItems: {
|
|
[GROUPS_LOCAL_STORAGE_KEY]: [],
|
|
[PROJECTS_LOCAL_STORAGE_KEY]: [],
|
|
},
|
|
sidebarDirty: false,
|
|
});
|
|
export default createState;
|